[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54634] trunk/blender/source/blender/ editors: Fix some popups being too small on retina display, among them the new image dialog.
Brecht Van Lommel
brechtvanlommel at pandora.be
Mon Feb 18 16:08:27 CET 2013
Revision: 54634
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54634
Author: blendix
Date: 2013-02-18 15:08:27 +0000 (Mon, 18 Feb 2013)
Log Message:
-----------
Fix some popups being too small on retina display, among them the new image dialog.
Modified Paths:
--------------
trunk/blender/source/blender/editors/armature/poseobject.c
trunk/blender/source/blender/editors/object/object_edit.c
trunk/blender/source/blender/editors/space_image/image_ops.c
trunk/blender/source/blender/editors/space_text/text_ops.c
Modified: trunk/blender/source/blender/editors/armature/poseobject.c
===================================================================
--- trunk/blender/source/blender/editors/armature/poseobject.c 2013-02-18 15:08:23 UTC (rev 54633)
+++ trunk/blender/source/blender/editors/armature/poseobject.c 2013-02-18 15:08:27 UTC (rev 54634)
@@ -238,7 +238,7 @@
/* show popup dialog to allow editing of range... */
// FIXME: hardcoded dimensions here are just arbitrary
- return WM_operator_props_dialog_popup(C, op, 200, 200);
+ return WM_operator_props_dialog_popup(C, op, 10*UI_UNIT_X, 10*UI_UNIT_Y);
}
/* For the object with pose/action: create path curves for selected bones
Modified: trunk/blender/source/blender/editors/object/object_edit.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_edit.c 2013-02-18 15:08:23 UTC (rev 54633)
+++ trunk/blender/source/blender/editors/object/object_edit.c 2013-02-18 15:08:27 UTC (rev 54634)
@@ -1151,7 +1151,7 @@
/* show popup dialog to allow editing of range... */
/* FIXME: hardcoded dimensions here are just arbitrary */
- return WM_operator_props_dialog_popup(C, op, 200, 200);
+ return WM_operator_props_dialog_popup(C, op, 10*UI_UNIT_X, 10*UI_UNIT_Y);
}
/* Calculate/recalculate whole paths (avs.path_sf to avs.path_ef) */
Modified: trunk/blender/source/blender/editors/space_image/image_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_image/image_ops.c 2013-02-18 15:08:23 UTC (rev 54633)
+++ trunk/blender/source/blender/editors/space_image/image_ops.c 2013-02-18 15:08:27 UTC (rev 54634)
@@ -1777,7 +1777,7 @@
/* XXX Note: the WM_operator_props_dialog_popup() doesn't work for uiIDContextProperty(), image is not being that way */
static int image_new_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
{
- return WM_operator_props_dialog_popup(C, op, 300, 100);
+ return WM_operator_props_dialog_popup(C, op, 15*UI_UNIT_X, 5*UI_UNIT_Y);
}
Modified: trunk/blender/source/blender/editors/space_text/text_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_text/text_ops.c 2013-02-18 15:08:23 UTC (rev 54633)
+++ trunk/blender/source/blender/editors/space_text/text_ops.c 2013-02-18 15:08:27 UTC (rev 54634)
@@ -1929,7 +1929,7 @@
static int text_jump_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
{
- return WM_operator_props_dialog_popup(C, op, 200, 100);
+ return WM_operator_props_dialog_popup(C, op, 10*UI_UNIT_X, 5*UI_UNIT_Y);
}
More information about the Bf-blender-cvs
mailing list