The 'height' and 'width' fields aren't necessary.
This commit is contained in:
parent
2cd63146ca
commit
714f537c72
@ -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);
|
||||
|
||||
|
@ -8,8 +8,6 @@
|
||||
|
||||
struct frame {
|
||||
WINDOW *shape;
|
||||
int height;
|
||||
int width;
|
||||
int start_y;
|
||||
int start_x;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user