OS X fix:
[blender.git] / source / blender / src / editscreen.c
index 9cf11275f73a43463565e2a41fef664197bb1f69..b8f26bddbeff8f92f1922ffc7204c4c10a03bdc2 100644 (file)
@@ -1212,19 +1212,25 @@ void setprefsize(int stax, int stay, int sizx, int sizy)
        int scrwidth, scrheight;
        
        winlay_get_screensize(&scrwidth, &scrheight);
        int scrwidth, scrheight;
        
        winlay_get_screensize(&scrwidth, &scrheight);
-       
+               
        if(stax<0) stax= 0;
        if(stay<0) stay= 0;
        if(sizx<320) sizx= 320;
        if(sizy<256) sizy= 256;
 
        if(stax<0) stax= 0;
        if(stay<0) stay= 0;
        if(sizx<320) sizx= 320;
        if(sizy<256) sizy= 256;
 
-       if(stax+sizx>scrwidth) sizx= scrwidth-stax;
+       if(stax+sizx>scrwidth) {
+               fprintf(stderr," width prob \n");
+               sizx= scrwidth-stax;
+               }
 
 
-       if(stay+sizy>scrheight) sizy= scrheight-stay;
+       if(stay+sizy>scrheight) {
+               fprintf(stderr," height prob \n");
+               sizy= scrheight-stay;
+               }
 
 
-#ifdef __APPLE__
-       if(stay+sizy>scrheight-22) sizy= scrheight-22-stay;     // 22 = topbar
-#endif
+/* #ifdef __APPLE__ */
+/*     if(stay+sizy>scrheight-22) sizy= scrheight-22-stay;     // 22 = topbar  */
+/* #endif*/
 
        if(sizx<320 || sizy<256) {
                printf("ERROR: illegal prefsize\n");
 
        if(sizx<320 || sizy<256) {
                printf("ERROR: illegal prefsize\n");