home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made single World struct a global variable, fitted a lot of code to this change,...
[plomrogue]
/
src
/
windows.c
diff --git
a/src/windows.c
b/src/windows.c
index 5165179029e60eeec252cc6963b849bdbd7fdaca..2b5ea39d39b41897c5cc8db8005a5304c4c0d8ee 100644
(file)
--- a/
src/windows.c
+++ b/
src/windows.c
@@
-485,8
+485,7
@@
extern uint8_t init_win_meta(WINDOW * screen, struct WinMeta ** wmp)
extern uint8_t init_win(struct WinMeta * wmeta, struct Win ** wp, char * title,
extern uint8_t init_win(struct WinMeta * wmeta, struct Win ** wp, char * title,
- int16_t height, int16_t width,
- void * data, void * func)
+ int16_t height, int16_t width, void * func)
{
struct Win * w = malloc(sizeof(struct Win));
if (NULL == w)
{
struct Win * w = malloc(sizeof(struct Win));
if (NULL == w)
@@
-504,7
+503,6
@@
extern uint8_t init_win(struct WinMeta * wmeta, struct Win ** wp, char * title,
return 1;
}
sprintf(w->title, "%s", title);
return 1;
}
sprintf(w->title, "%s", title);
- w->data = data;
w->draw = func;
w->center.y = 0;
w->center.x = 0;
w->draw = func;
w->center.y = 0;
w->center.x = 0;