ui/winui/window.cpp

changeset 102
64ded9f6a6c6
parent 79
483d7342b439
--- a/ui/winui/window.cpp	Mon Jan 06 22:22:55 2025 +0100
+++ b/ui/winui/window.cpp	Tue Feb 25 21:11:00 2025 +0100
@@ -142,7 +142,7 @@
 }
 
 UIEXPORT UiObject* ui_simple_window(const char *title, void *window_data) {
-	CxMempool* mp = cxBasicMempoolCreate(256);
+	CxMempool* mp = cxMempoolCreateSimple(256);
 	UiObject* obj = (UiObject*)cxCalloc(mp->allocator, 1, sizeof(UiObject));
 
 	obj->ctx = uic_context(obj, mp);
@@ -223,7 +223,7 @@
 		return NULL;
 	}
 	
-	CxMempool* mp = cxBasicMempoolCreate(256);
+	CxMempool* mp = cxMempoolCreateSimple(256);
 	UiObject* obj = (UiObject*)cxCalloc(mp->allocator, 1, sizeof(UiObject));
 	
 	obj->ctx = uic_context(obj, mp);

mercurial