The 'height' and 'width' fields aren't necessary.

This commit is contained in:
Murilo Soares Pereira 2010-04-10 14:37:43 -03:00
parent 2cd63146ca
commit 714f537c72
2 changed files with 2 additions and 6 deletions

View File

@ -9,8 +9,6 @@ void allocate_frame(struct frame **frame) {
void initialize_frame(struct frame *frame) { void initialize_frame(struct frame *frame) {
frame->shape = NULL; frame->shape = NULL;
frame->height = FRAME_HEIGHT;
frame->width = FRAME_WIDTH;
frame->start_y = 0; frame->start_y = 0;
frame->start_x = 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) { void set_frame(struct frame *frame, int start_y, int start_x) {
frame->start_y = start_y; frame->start_y = start_y;
frame->start_x = start_x; frame->start_x = start_x;
frame->shape = newwin(frame->height, frame->shape = newwin(FRAME_HEIGHT,
frame->width, FRAME_WIDTH,
frame->start_y, frame->start_y,
frame->start_x); frame->start_x);

View File

@ -8,8 +8,6 @@
struct frame { struct frame {
WINDOW *shape; WINDOW *shape;
int height;
int width;
int start_y; int start_y;
int start_x; int start_x;
}; };