initialize_frame() isn't needed, newwin() takes care of it.

This commit is contained in:
Murilo Soares Pereira 2010-04-04 00:33:39 -03:00
parent 8173aaa7ff
commit 094fff00f0
2 changed files with 1 additions and 10 deletions

View File

@ -2,20 +2,12 @@
#include <malloc.h>
#include "frame.h"
WINDOW *initialize_shape() {
WINDOW *shape;
shape = malloc(sizeof(shape));
return(shape);
}
struct frame *initialize_frame() {
struct frame *frame = NULL;
frame = malloc(sizeof(*frame));
frame->shape = initialize_shape();
frame->shape = NULL;
frame->height = FRAME_HEIGHT;
frame->width = FRAME_WIDTH;
frame->start_y = 0;

View File

@ -12,7 +12,6 @@ struct frame {
int start_x;
};
WINDOW *initialize_shape();
struct frame *initialize_frame();
void delete_frame(struct frame *);
void set_frame(struct frame *, int, int);