Author: KirkMcDonald
Date: 2008-01-02 07:39:43 +0000 (Wed, 02 Jan 2008)
New Revision: 728

Modified:
   trunk/pysoy/src/_core-w32/Window.pxi
   trunk/pysoy/src/_core-w32/soy._core.pxd
   trunk/pysoy/src/_core-w32/support.c
Log:
Support for splash windows.

Modified: trunk/pysoy/src/_core-w32/Window.pxi
===================================================================
--- trunk/pysoy/src/_core-w32/Window.pxi        2008-01-02 07:30:48 UTC (rev 
727)
+++ trunk/pysoy/src/_core-w32/Window.pxi        2008-01-02 07:39:43 UTC (rev 
728)
@@ -38,8 +38,8 @@
      Each instance of this class is a separate window.
   '''
 
-  def __cinit__(self, screen, title='', background=None, position=(0,0), 
-              size=(320,240), *args, **kw) :
+  def __cinit__(self, screen, title='', icon=None, background=None,
+                splash=False, position=(0,0), size=(320,240), *args, **kw) :
     self._hInst = windows.GetModuleHandle(NULL)
 
     self._controllers = soy._internals.Children()
@@ -52,6 +52,10 @@
       self._background = background
     else :
       self._background = soy.colors.Black()
+    if splash:
+      self._splash = 1
+    else:
+      self._splash = 0
 
     # _request's values represent the following:
     #  _TITLE: title change
@@ -103,7 +107,7 @@
 
   cdef void _create(self, int x, int y, int width, int height):
     cdef int _fullscreen
-    if self._screen._fullScreen is self:
+    if self._screen._fullScreen is self or self._splash:
       #stdio.printf("Window._create: fullscreen\n")
       _fullscreen = 1
     else:

Modified: trunk/pysoy/src/_core-w32/soy._core.pxd
===================================================================
--- trunk/pysoy/src/_core-w32/soy._core.pxd     2008-01-02 07:30:48 UTC (rev 
727)
+++ trunk/pysoy/src/_core-w32/soy._core.pxd     2008-01-02 07:39:43 UTC (rev 
728)
@@ -85,6 +85,7 @@
   cdef int                       _savedHeight
   cdef int                       _request
   cdef int                       _opened
+  cdef int                       _splash
   cdef void                      _set_title(self)
   cdef void                      _request_create(self, int, int, int, int)
   cdef void                      _request_destroy(self)

Modified: trunk/pysoy/src/_core-w32/support.c
===================================================================
--- trunk/pysoy/src/_core-w32/support.c 2008-01-02 07:30:48 UTC (rev 727)
+++ trunk/pysoy/src/_core-w32/support.c 2008-01-02 07:39:43 UTC (rev 728)
@@ -58,6 +58,12 @@
 }
 
 HWND make_window(HINSTANCE hInstance, char* title, int x, int y, int width, 
int height, int fullscreen) {
+    /*
+    fullscreen:
+    0 = normal window
+    1 = fullscreen
+    2 = splash
+    */
     RECT rect;
     DWORD exStyle;
     DWORD style;

_______________________________________________
PySoy-SVN mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to