[Vm-dev] [commit] r2596 - allow a headless image to change the size
of the Display
commits at squeakvm.org
commits at squeakvm.org
Thu Sep 13 13:41:21 UTC 2012
Author: piumarta
Date: 2012-09-13 06:41:14 -0700 (Thu, 13 Sep 2012)
New Revision: 2596
Modified:
trunk/platforms/unix/ChangeLog
trunk/platforms/unix/vm-display-null/sqUnixDisplayNull.c
Log:
allow a headless image to change the size of the Display
Modified: trunk/platforms/unix/ChangeLog
===================================================================
--- trunk/platforms/unix/ChangeLog 2012-09-13 11:23:03 UTC (rev 2595)
+++ trunk/platforms/unix/ChangeLog 2012-09-13 13:41:14 UTC (rev 2596)
@@ -1,5 +1,10 @@
2012-09-14 Ian Piumarta <com -dot- gmail -at- piumarta (backwards)>
+ * vm-display-null/sqUnixDisplayNull.c (display_ioSetDisplayMode):
+ Allow a headless image to change the size of the Display.
+
+2012-09-14 Ian Piumarta <com -dot- gmail -at- piumarta (backwards)>
+
* vm/sqUnixMain.c (sqUnixUtcWithOffset): Compute gmt offset from
gmtime - localtime when tm_gmtoff not available.
Modified: trunk/platforms/unix/vm-display-null/sqUnixDisplayNull.c
===================================================================
--- trunk/platforms/unix/vm-display-null/sqUnixDisplayNull.c 2012-09-13 11:23:03 UTC (rev 2595)
+++ trunk/platforms/unix/vm-display-null/sqUnixDisplayNull.c 2012-09-13 13:41:14 UTC (rev 2596)
@@ -75,7 +75,8 @@
static sqInt display_ioSetDisplayMode(sqInt w, sqInt h, sqInt d, sqInt fullscreenFlag)
{
- return 0;
+ setSavedWindowSize((w << 16) + (h & 0xFFFF));
+ return 1;
}
static sqInt display_clipboardSize(void)
More information about the Vm-dev
mailing list