local state

This commit is contained in:
tkarrass 2013-11-02 19:58:59 +01:00
parent c941e7809e
commit 029ff9d5c0

View File

@ -5,7 +5,6 @@
#include "display.h" #include "display.h"
<<<<<<< HEAD
void setup_display() { void setup_display() {
initscr(); // ncurses initialization initscr(); // ncurses initialization
@ -23,11 +22,11 @@ void cleanup_display() {
uint32_t height; // normally 25, may vary uint32_t height; // normally 25, may vary
char *image; // dimension is width x height char *image; // dimension is width x height
*/ */
void print_current_image(message* msg, int start, int end) { void print_current_image(struct message* msg, int start, int end) {
// end is ignored and 80 is used, should be considered later // end is ignored and 80 is used, should be considered later
move(0,0); // start in the upper left corner move(0,0); // start in the upper left corner
char *pic = msg->img; // get a ptr to the actual image char *pic = msg->image; // get a ptr to the actual image
for (int row=0; row < 25; row++) { // iterate rows for (int row=0; row < 25; row++) { // iterate rows
char *line = (char*) malloc(81); char *line = (char*) malloc(81);