mac: get it compiling. remove preQuartz.h (will add something better later) and rename the 'quickdraw' target to carbon

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@184 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
IoIxD
2025-10-06 21:01:50 +00:00
parent 8dac5bd0f0
commit 26a522d035
10 changed files with 169 additions and 2293 deletions

View File

@@ -4,9 +4,12 @@
#include "../external/stb_ds.h"
static int create(MwWidget handle) {
/* todo: we should have a public "show" function here that is implemented per
platform, as opposed to just shoving it here. perchance. */
#ifdef _WIN32
ShowWindow(handle->lowlevel->hWnd, SW_HIDE);
#else
#endif
#ifdef UNIX
XUnmapWindow(handle->lowlevel->display, handle->lowlevel->window);
#endif
@@ -164,7 +167,7 @@ MwClass MwSubMenuClass = &MwSubMenuClassRec;
void MwSubMenuAppear(MwWidget handle, MwMenu menu, MwPoint* point) {
int i, w = 0, h = 0;
#ifndef _WIN32
#ifdef UNIX
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);