[Vm-dev] [commit] r2425 - On Mac use postFullScreenUpdate to handle
the redraw on monitor reconfig issue.
commits at squeakvm.org
commits at squeakvm.org
Sat Jun 11 00:22:23 UTC 2011
Author: eliot
Date: 2011-06-10 17:22:23 -0700 (Fri, 10 Jun 2011)
New Revision: 2425
Modified:
branches/Cog/platforms/Mac OS/vm/sqMacUIEvents.h
branches/Cog/platforms/Mac OS/vm/sqMacUIEventsUniversal.c
branches/Cog/platforms/Mac OS/vm/sqMacWindowUniversal.c
Log:
On Mac use postFullScreenUpdate to handle the redraw on monitor reconfig issue.
Modified: branches/Cog/platforms/Mac OS/vm/sqMacUIEvents.h
===================================================================
--- branches/Cog/platforms/Mac OS/vm/sqMacUIEvents.h 2011-06-10 20:01:49 UTC (rev 2424)
+++ branches/Cog/platforms/Mac OS/vm/sqMacUIEvents.h 2011-06-11 00:22:23 UTC (rev 2425)
@@ -38,3 +38,4 @@
void SetUpCarbonEvent();
void SetUpCarbonEventForWindowIndex(int index);
void RunApplicationEventLoopWithSqueak(void);
+void postFullScreenUpdate(void);
Modified: branches/Cog/platforms/Mac OS/vm/sqMacUIEventsUniversal.c
===================================================================
--- branches/Cog/platforms/Mac OS/vm/sqMacUIEventsUniversal.c 2011-06-10 20:01:49 UTC (rev 2424)
+++ branches/Cog/platforms/Mac OS/vm/sqMacUIEventsUniversal.c 2011-06-11 00:22:23 UTC (rev 2425)
@@ -75,7 +75,7 @@
#define EventTypeFullScreenUpdate 98
#define EventTypePostEventProcessing 99
static void doPostMessageHook(EventRef event);
-static void postFullScreenUpdate(void);
+void postFullScreenUpdate(void);
void signalAnyInterestedParties(void);
static sqKeyboardEvent *enterKeystroke (long type, long cc, long pc, UniChar utf32Char, long m);
@@ -445,7 +445,7 @@
}
}
-static void postFullScreenUpdate() {
+void postFullScreenUpdate() {
sqInputEvent *evt;
pthread_mutex_lock(&gEventQueueLock);
Modified: branches/Cog/platforms/Mac OS/vm/sqMacWindowUniversal.c
===================================================================
--- branches/Cog/platforms/Mac OS/vm/sqMacWindowUniversal.c 2011-06-10 20:01:49 UTC (rev 2424)
+++ branches/Cog/platforms/Mac OS/vm/sqMacWindowUniversal.c 2011-06-11 00:22:23 UTC (rev 2425)
@@ -43,7 +43,7 @@
#include "sqMacUIConstants.h"
#include "sqMacWindow.h"
#include "sqMacFileLogic.h"
-#include "sqmacUIEvents.h"
+#include "sqMacUIEvents.h"
#include "sqMacUIMenuBar.h"
#include "sqMacEncoding.h"
#include "sqMacHostWindow.h"
@@ -752,14 +752,9 @@
if (!nDisplays) {
windowDescriptorBlock *squeakWB = windowBlockFromIndex(1);
ioSetFullScreenActual(getFullScreenFlag());
-#if 0
- neither CGContextSynchronize(squeakWB->context)
- nor CGContextFlush(squeakWB->context) appear to work.
- if (!squeakWB->isInvisible)
- CGContextSynchronize(squeakWB->context);
-#endif
}
}
+ postFullScreenUpdate();
}
int
More information about the Vm-dev
mailing list