More TODO cleanup.
This commit is contained in:
parent
1e263930eb
commit
33b1c29de8
|
@ -19,7 +19,6 @@ struct uiControl {
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void *uiAlloc(size_t);
|
extern void *uiAlloc(size_t);
|
||||||
// TODO use this in existing files
|
|
||||||
#define uiNew(T) ((T *) uiAlloc(sizeof (T)))
|
#define uiNew(T) ((T *) uiAlloc(sizeof (T)))
|
||||||
extern void *uiRealloc(void *, size_t);
|
extern void *uiRealloc(void *, size_t);
|
||||||
extern void uiFree(void *);
|
extern void uiFree(void *);
|
||||||
|
|
|
@ -81,7 +81,7 @@ uiWindow *uiNewWindow(char *title, int width, int height)
|
||||||
RECT adjust;
|
RECT adjust;
|
||||||
WCHAR *wtitle;
|
WCHAR *wtitle;
|
||||||
|
|
||||||
w = (uiWindow *) uiAlloc(sizeof (uiWindow));
|
w = uiNew(uiWindow);
|
||||||
w->onClosing = defaultOnClosing;
|
w->onClosing = defaultOnClosing;
|
||||||
|
|
||||||
adjust.left = 0;
|
adjust.left = 0;
|
||||||
|
|
Loading…
Reference in New Issue