use define for 0.375 = GLA_PIXEL_OFS, used all over the interface.
[blender.git] / source / blender / editors / space_text / text_draw.c
index 8be5b644afb82f26b834c9f10ccb45fa1b289df3..6240d17457579230cef4d804be57ea2fcfe31f54 100644 (file)
@@ -50,7 +50,6 @@
 #include "BKE_suggestions.h"
 #include "BKE_text.h"
 
-
 #include "BIF_gl.h"
 
 #include "ED_datafiles.h"
@@ -1854,7 +1853,7 @@ void draw_text_main(SpaceText *st, ARegion *ar)
        /* draw other stuff */
        draw_brackets(st, ar);
        draw_markers(st, ar);
-       glTranslatef(0.375f, 0.375f, 0.0f); /* XXX scroll requires exact pixel space */
+       glTranslatef(GLA_PIXEL_OFS, GLA_PIXEL_OFS, 0.0f); /* XXX scroll requires exact pixel space */
        draw_textscroll(st, &scroll, &back);
        draw_documentation(st, ar);
        draw_suggestion_list(st, ar);