use define for 0.375 = GLA_PIXEL_OFS, used all over the interface.
[blender.git] / source / blender / editors / screen / area.c
index 47a086a2779d681bec060bba563992ce721e06eb..b4f1f4b3022eaa2f058afd05b57ddef2be7cd122 100644 (file)
@@ -107,7 +107,7 @@ void ED_region_pixelspace(ARegion *ar)
        int width = ar->winrct.xmax - ar->winrct.xmin + 1;
        int height = ar->winrct.ymax - ar->winrct.ymin + 1;
        
-       wmOrtho2(-0.375f, (float)width - 0.375f, -0.375f, (float)height - 0.375f);
+       wmOrtho2(-GLA_PIXEL_OFS, (float)width - GLA_PIXEL_OFS, -GLA_PIXEL_OFS, (float)height - GLA_PIXEL_OFS);
        glLoadIdentity();
 }