Fixed assorted errors. Now to figure out why we're running out of memory...
This commit is contained in:
parent
68586e1eaf
commit
05530cafe8
|
@ -4,7 +4,6 @@
|
||||||
include test/GNUmakeinc.mk
|
include test/GNUmakeinc.mk
|
||||||
|
|
||||||
baseHFILES = \
|
baseHFILES = \
|
||||||
ui.h \
|
|
||||||
$(testHFILES)
|
$(testHFILES)
|
||||||
|
|
||||||
baseCFILES = $(testCFILES)
|
baseCFILES = $(testCFILES)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "../ui.h"
|
#include "../out/ui.h"
|
||||||
|
|
||||||
// main.c
|
// main.c
|
||||||
extern void die(const char *, ...);
|
extern void die(const char *, ...);
|
||||||
|
|
|
@ -85,6 +85,8 @@ const char *uiInit(uiInitOptions *o)
|
||||||
if (initAlloc() == 0)
|
if (initAlloc() == 0)
|
||||||
return loadLastError("error initializing memory allocations");
|
return loadLastError("error initializing memory allocations");
|
||||||
|
|
||||||
|
initResizes();
|
||||||
|
|
||||||
nCmdShow = SW_SHOWDEFAULT;
|
nCmdShow = SW_SHOWDEFAULT;
|
||||||
GetStartupInfoW(&si);
|
GetStartupInfoW(&si);
|
||||||
if ((si.dwFlags & STARTF_USESHOWWINDOW) != 0)
|
if ((si.dwFlags & STARTF_USESHOWWINDOW) != 0)
|
||||||
|
@ -137,6 +139,7 @@ void uiUninit(void)
|
||||||
unregisterWindowClass();
|
unregisterWindowClass();
|
||||||
// TODO delete default cursor
|
// TODO delete default cursor
|
||||||
// TODO delete default icon
|
// TODO delete default icon
|
||||||
|
uninitResizes();
|
||||||
uninitAlloc();
|
uninitAlloc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue