Syncing Orange branch with bf-blender
[blender.git] / source / blender / src / editscreen.c
index ea1e0fb5da14c0bbe56c3d02efe8151ee54f87b9..b95fc9f11bda1316f1d6a12059229b18b3a13f72 100644 (file)
@@ -1488,24 +1488,13 @@ void setprefsize(int stax, int stay, int sizx, int sizy)
        
        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+sizx>scrwidth) {
-//             fprintf(stderr," width prob \n");
-//             sizx= scrwidth-stax;
-//             }
-
        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*/
+       }
 
        if(sizx<320 || sizy<256) {
                printf("ERROR: illegal prefsize\n");