- adapted startsize for osx version to match powerbook (768 high)
authorTon Roosendaal <ton@blender.org>
Fri, 10 Oct 2003 13:36:38 +0000 (13:36 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 10 Oct 2003 13:36:38 +0000 (13:36 +0000)
- add patch in prevsize routine (editscreen.c) to subtract apple
  top header, this allows 'fullscreen' with windowbar behind topbar.

source/creator/creator.c

index c05af6872747d76d60e515e53b31d639819d514a..b24631ffc64aa42951fd1779072bb52c60414cc3 100644 (file)
@@ -30,6 +30,7 @@
  * ***** END GPL/BL DUAL LICENSE BLOCK *****
  */
 #include <stdlib.h>
+#include <string.h>
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
@@ -204,7 +205,8 @@ int main(int argc, char **argv)
                
                argc= 1;
                
-               setprefsize(170, 100, 900, 768);
+               /* 40 + 684 + (headers) 22 + 22 = 768, the powerbook screen height */
+               setprefsize(120, 40, 850, 684);
                
                winlay_get_screensize(&scr_x, &scr_y);
                winlay_process_events(0);