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; };