initial cmake support

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@477 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-23 17:04:35 +00:00
parent 06807b6779
commit 49ddd969a7
5 changed files with 184 additions and 3 deletions

View File

@@ -253,6 +253,6 @@ void MwFontFree(void* handle) {
free(ttf->data);
free(ttf);
#else
(void)font;
(void)handle;
#endif
}

View File

@@ -147,7 +147,7 @@ static void click(MwWidget handle) {
static void mwSubMenuAppearImpl(MwWidget handle, MwMenu menu, MwPoint* point) {
int i, w = 0, h = 0;
#ifdef UNIX
#ifdef USE_X11
XSetWindowAttributes xswa;
Atom wndtype = XInternAtom(handle->lowlevel->display, "_NET_WM_WINDOW_TYPE", False);
Atom wndmenu = XInternAtom(handle->lowlevel->display, "_NET_WM_WINDOW_TYPE_MENU", False);
@@ -162,7 +162,7 @@ static void mwSubMenuAppearImpl(MwWidget handle, MwMenu menu, MwPoint* point) {
MwLLDetach(handle->lowlevel, point);
#ifdef _WIN32
#ifdef USE_GDI
SetWindowLongPtr(handle->lowlevel->hWnd, GWL_STYLE, (LPARAM)0);
SetWindowLongPtr(handle->lowlevel->hWnd, GWL_EXSTYLE, (LPARAM)WS_EX_TOOLWINDOW);
#endif