ui/winui/window.cpp

branch
newapi
changeset 187
24ce2c326d85
parent 184
8c9b4b28aaa9
child 190
70fd1b24e395
--- a/ui/winui/window.cpp	Sun Oct 01 09:23:47 2023 +0200
+++ b/ui/winui/window.cpp	Sun Oct 01 12:08:09 2023 +0200
@@ -45,7 +45,7 @@
 
 #include <stdlib.h>
 
-#include <cx/basic_mempool.h>
+#include <cx/mempool.h>
 
 using namespace winrt;
 using namespace Microsoft::UI::Xaml;
@@ -62,7 +62,7 @@
 	CxMempool* mp = cxBasicMempoolCreate(256);
 	UiObject* obj = (UiObject*)cxCalloc(mp->allocator, 1, sizeof(UiObject));
 
-	obj->ctx = uic_context(obj, mp->allocator);
+	obj->ctx = uic_context(obj, mp);
 	obj->window = window_data;
 
 	Window window = Window();

mercurial