r567 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri May 30 22:53:48 EDT 2008


Author: icculus
Date: 2008-05-30 22:53:48 -0400 (Fri, 30 May 2008)
New Revision: 567

Modified:
   trunk/lua_glue.c
Log:
Position splash image on left or top, based on dimensions (thanks, Gerry JJ!).


Modified: trunk/lua_glue.c
===================================================================
--- trunk/lua_glue.c	2008-05-31 02:41:50 UTC (rev 566)
+++ trunk/lua_glue.c	2008-05-31 02:53:48 UTC (rev 567)
@@ -1121,7 +1121,8 @@
         {
             splash->rgba = decodeImage(data, size, &splash->w, &splash->h);
             if (splash->rgba != NULL)
-                splash->position = MOJOGUI_SPLASH_TOP;  // !!! FIXME: others?
+                splash->position = (splash->w >= splash->h) ?
+                    MOJOGUI_SPLASH_TOP : MOJOGUI_SPLASH_LEFT;  // !!! FIXME: others?
         } // if
         free(data);
     } // if




More information about the mojosetup-commits mailing list