ui/winui/window.cpp

changeset 108
77254bd6dccb
parent 103
6606616eca9f
equal deleted inserted replaced
107:b34bd1557c6c 108:77254bd6dccb
145 145
146 return obj; 146 return obj;
147 } 147 }
148 148
149 UIEXPORT UiObject* ui_simple_window(const char *title, void *window_data) { 149 UIEXPORT UiObject* ui_simple_window(const char *title, void *window_data) {
150 CxMempool* mp = cxMempoolCreateSimple(256); 150 UiObject* obj = uic_object_new_toplevel();
151 UiObject* obj = (UiObject*)cxCalloc(mp->allocator, 1, sizeof(UiObject));
152 151
153 obj->ctx = uic_context(obj, mp); 152 obj->ctx = uic_context(obj, mp);
154 obj->window = window_data; 153 obj->window = window_data;
155 154
156 Window window = Window(); 155 Window window = Window();

mercurial