From 714f537c7220055acb1dc83e28407f59e4343b83 Mon Sep 17 00:00:00 2001 From: Murilo Soares Pereira Date: Sat, 10 Apr 2010 14:37:43 -0300 Subject: [PATCH] The 'height' and 'width' fields aren't necessary. --- lib/frame.c | 6 ++---- lib/frame.h | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/frame.c b/lib/frame.c index 9343eb4..6cd6245 100644 --- a/lib/frame.c +++ b/lib/frame.c @@ -9,8 +9,6 @@ void allocate_frame(struct frame **frame) { void initialize_frame(struct frame *frame) { frame->shape = NULL; - frame->height = FRAME_HEIGHT; - frame->width = FRAME_WIDTH; frame->start_y = 0; frame->start_x = 0; @@ -27,8 +25,8 @@ void delete_frame(struct frame *frame) { void set_frame(struct frame *frame, int start_y, int start_x) { frame->start_y = start_y; frame->start_x = start_x; - frame->shape = newwin(frame->height, - frame->width, + frame->shape = newwin(FRAME_HEIGHT, + FRAME_WIDTH, frame->start_y, frame->start_x); diff --git a/lib/frame.h b/lib/frame.h index b9b10fa..b943fcf 100644 --- a/lib/frame.h +++ b/lib/frame.h @@ -8,8 +8,6 @@ struct frame { WINDOW *shape; - int height; - int width; int start_y; int start_x; };