make some updates to get classicmacos.c working but its probably over
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
2c2e21503f
commit
f91fc66fb6
4 changed files with 27 additions and 14 deletions
|
|
@ -12,8 +12,8 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(CMAKE_STATIC_LIBRARY_PREFIX "")
|
set(CMAKE_STATIC_LIBRARY_PREFIX "")
|
||||||
set(CMAKE_SHARED_LIBRARY_PREFIX "")
|
set(CMAKE_SHARED_LIBRARY_PREFIX "")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(MW_CLASSIC_THEME "Use classic theme" OFF)
|
option(MW_CLASSIC_THEME "Use classic theme" OFF)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
#include <Threads.h>
|
#include <Threads.h>
|
||||||
#include <QuickDraw.h>
|
|
||||||
|
|
||||||
#include "../../external/stb_ds.h"
|
#include "../../external/stb_ds.h"
|
||||||
|
|
||||||
|
|
@ -65,7 +64,11 @@ static void MwLLPolygonImpl(MwLL handle, MwPoint* points, int points_count, MwLL
|
||||||
}
|
}
|
||||||
|
|
||||||
ClosePoly();
|
ClosePoly();
|
||||||
FillCPoly(p, &qd.ltGray);
|
|
||||||
|
PenMode(patCopy);
|
||||||
|
RGBForeColor(&col);
|
||||||
|
PaintPoly(p);
|
||||||
|
|
||||||
KillPoly(p);
|
KillPoly(p);
|
||||||
|
|
||||||
EndUpdate(handle->cmacos.window);
|
EndUpdate(handle->cmacos.window);
|
||||||
|
|
@ -132,9 +135,23 @@ static void MwLLNextEventImpl(MwLL handle) {
|
||||||
switch(event.what) {
|
switch(event.what) {
|
||||||
case updateEvt:
|
case updateEvt:
|
||||||
{
|
{
|
||||||
}
|
/*
|
||||||
// MwLLDispatch(handle, draw, NULL);
|
This is our blocker for getting anything running.
|
||||||
break;
|
This needs to be called at this point to start drawing anything.
|
||||||
|
...It locks up and/or crashes the entire system. At least on SheepShaver.
|
||||||
|
It's not a stack overflow, it's not anything in the drawing functions.
|
||||||
|
It's *something* else. But because Classic Mac OS development is like
|
||||||
|
digging up forbidden tombs while stabbing yourself in the eye several times,
|
||||||
|
I don't know what.
|
||||||
|
|
||||||
|
Fun fact: for as much as everyone loves to glaze about AI being the future
|
||||||
|
of programming, even Claude got confused when I gave up and tried to ask it
|
||||||
|
for help. Information about Classic Mac OS probably takes up 0.0001% of its
|
||||||
|
knowledge base; god knows it's hard enough finding information online about
|
||||||
|
this!
|
||||||
|
*/
|
||||||
|
MwLLDispatch(handle, draw, NULL);
|
||||||
|
} break;
|
||||||
case osEvt:
|
case osEvt:
|
||||||
break;
|
break;
|
||||||
case mouseUp:
|
case mouseUp:
|
||||||
|
|
|
||||||
|
|
@ -1063,9 +1063,7 @@ int MwLibraryInit(void) {
|
||||||
#ifdef USE_GDI
|
#ifdef USE_GDI
|
||||||
MwLLGDICallInit,
|
MwLLGDICallInit,
|
||||||
#endif
|
#endif
|
||||||
#ifdef CLASSIC_MAC_OS
|
|
||||||
MwLLClassicMacOSCallInit,
|
|
||||||
#endif
|
|
||||||
#ifdef USE_HAIKU
|
#ifdef USE_HAIKU
|
||||||
MwLLHaikuCallInit,
|
MwLLHaikuCallInit,
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -1109,9 +1107,7 @@ int MwLibraryInit(void) {
|
||||||
#ifdef USE_GDI
|
#ifdef USE_GDI
|
||||||
" GDI"
|
" GDI"
|
||||||
#endif
|
#endif
|
||||||
#ifdef CLASSIC_MAC_OS
|
|
||||||
" ClassicMacOS"
|
|
||||||
#endif
|
|
||||||
"\n");
|
"\n");
|
||||||
#endif
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ MwWidget MwMessageBox(MwWidget handle, const char* text, const char* title, unsi
|
||||||
if((flag & MwMB_ICONMASK) != 0) {
|
if((flag & MwMB_ICONMASK) != 0) {
|
||||||
MwWidget icon;
|
MwWidget icon;
|
||||||
MwLLPixmap px;
|
MwLLPixmap px;
|
||||||
unsigned int* data = NULL;
|
MwU32* data = NULL;
|
||||||
|
|
||||||
icon = MwCreateWidget(MwImageClass, "image", window, 8, (h - 48) / 2, 48, 48);
|
icon = MwCreateWidget(MwImageClass, "image", window, 8, (h - 48) / 2, 48, 48);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue