[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37204] trunk/blender/source/blender/ editors/space_file: scale the file selector UI with the DPI, the region size can still be wrong though.

Campbell Barton ideasman42 at gmail.com
Sun Jun 5 12:05:14 CEST 2011


Revision: 37204
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37204
Author:   campbellbarton
Date:     2011-06-05 10:05:13 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
scale the file selector UI with the DPI, the region size can still be wrong though.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_file/file_draw.c
    trunk/blender/source/blender/editors/space_file/file_intern.h

Modified: trunk/blender/source/blender/editors/space_file/file_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_file/file_draw.c	2011-06-05 09:22:14 UTC (rev 37203)
+++ trunk/blender/source/blender/editors/space_file/file_draw.c	2011-06-05 10:05:13 UTC (rev 37204)
@@ -74,12 +74,6 @@
 
 #include "file_intern.h"	// own include
 
-/* ui geometry */
-#define IMASEL_BUTTONS_HEIGHT 40
-#define IMASEL_BUTTONS_MARGIN 6
-#define TILE_BORDER_X 8
-#define TILE_BORDER_Y 8
-
 /* button events */
 enum {
 	B_FS_DIRNAME,

Modified: trunk/blender/source/blender/editors/space_file/file_intern.h
===================================================================
--- trunk/blender/source/blender/editors/space_file/file_intern.h	2011-06-05 09:22:14 UTC (rev 37203)
+++ trunk/blender/source/blender/editors/space_file/file_intern.h	2011-06-05 10:05:13 UTC (rev 37204)
@@ -43,9 +43,13 @@
 struct ARegion *file_buttons_region(struct ScrArea *sa);
 
 /* file_draw.c */
-#define TILE_BORDER_X 8
-#define TILE_BORDER_Y 8
+#define TILE_BORDER_X (UI_UNIT_X/4)
+#define TILE_BORDER_Y (UI_UNIT_Y/4)
 
+/* ui geometry */
+#define IMASEL_BUTTONS_HEIGHT (UI_UNIT_Y*2)
+#define IMASEL_BUTTONS_MARGIN (UI_UNIT_Y/6)
+
 void file_draw_buttons(const bContext *C, ARegion *ar);
 void file_calc_previews(const bContext *C, ARegion *ar);
 void file_draw_previews(const bContext *C, ARegion *ar);




More information about the Bf-blender-cvs mailing list