initialize_frame() isn't needed, newwin() takes care of it.
This commit is contained in:
parent
8173aaa7ff
commit
094fff00f0
10
lib/frame.c
10
lib/frame.c
@ -2,20 +2,12 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include "frame.h"
|
#include "frame.h"
|
||||||
|
|
||||||
WINDOW *initialize_shape() {
|
|
||||||
WINDOW *shape;
|
|
||||||
|
|
||||||
shape = malloc(sizeof(shape));
|
|
||||||
|
|
||||||
return(shape);
|
|
||||||
}
|
|
||||||
|
|
||||||
struct frame *initialize_frame() {
|
struct frame *initialize_frame() {
|
||||||
struct frame *frame = NULL;
|
struct frame *frame = NULL;
|
||||||
|
|
||||||
frame = malloc(sizeof(*frame));
|
frame = malloc(sizeof(*frame));
|
||||||
|
|
||||||
frame->shape = initialize_shape();
|
frame->shape = NULL;
|
||||||
frame->height = FRAME_HEIGHT;
|
frame->height = FRAME_HEIGHT;
|
||||||
frame->width = FRAME_WIDTH;
|
frame->width = FRAME_WIDTH;
|
||||||
frame->start_y = 0;
|
frame->start_y = 0;
|
||||||
|
@ -12,7 +12,6 @@ struct frame {
|
|||||||
int start_x;
|
int start_x;
|
||||||
};
|
};
|
||||||
|
|
||||||
WINDOW *initialize_shape();
|
|
||||||
struct frame *initialize_frame();
|
struct frame *initialize_frame();
|
||||||
void delete_frame(struct frame *);
|
void delete_frame(struct frame *);
|
||||||
void set_frame(struct frame *, int, int);
|
void set_frame(struct frame *, int, int);
|
||||||
|
Loading…
Reference in New Issue
Block a user