[gimp/gimp-2-8] Bug 707354 - Bump Map offsets only go to 1000 regardless of image size
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 707354 - Bump Map offsets only go to 1000 regardless of image size
- Date: Tue, 3 Sep 2013 14:06:06 +0000 (UTC)
commit aa5c186a3dc211fd8c17c55f915edc12a4f658df
Author: Michael Natterer <mitch gimp org>
Date: Tue Sep 3 16:00:09 2013 +0200
Bug 707354 - Bump Map offsets only go to 1000 regardless of image size
Allow ranges from -10000 to 10000, still arbitrary but more
real-world. The scales still go -1000 to 1000, but the spinbuttons
allow for the full range.
(cherry picked from commit af0cfacfb3fdd4308dc28167a8be74e5141fc1eb)
plug-ins/common/bump-map.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/common/bump-map.c b/plug-ins/common/bump-map.c
index 2be7fe0..288755f 100644
--- a/plug-ins/common/bump-map.c
+++ b/plug-ins/common/bump-map.c
@@ -935,7 +935,7 @@ bumpmap_dialog (void)
gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
_("_X offset:"), SCALE_WIDTH, 6,
bmvals.xofs, -1000.0, 1001.0, 1.0, 10.0, 0,
- TRUE, 0, 0,
+ FALSE, -10000.0, 10001.0,
_("The offset can be adjusted by dragging the "
"preview using the middle mouse button."), NULL);
g_signal_connect (adj, "value-changed",
@@ -949,7 +949,7 @@ bumpmap_dialog (void)
gimp_scale_entry_new (GTK_TABLE (table), 0, row,
_("_Y offset:"), SCALE_WIDTH, 6,
bmvals.yofs, -1000.0, 1001.0, 1.0, 10.0, 0,
- TRUE, 0, 0,
+ FALSE, -10000.0, 10001.0,
_("The offset can be adjusted by dragging the "
"preview using the middle mouse button."), NULL);
g_signal_connect (adj, "value-changed",
@@ -1065,7 +1065,7 @@ dialog_preview_events (GtkWidget *area,
switch (bmint.drag_mode)
{
case DRAG_BUMPMAP:
- bmvals.xofs = CLAMP (bmvals.xofs - dx, -1000, 1000);
+ bmvals.xofs = CLAMP (bmvals.xofs - dx, -10000, 10000);
g_signal_handlers_block_by_func (bmint.offset_adj_x,
gimp_int_adjustment_update,
&bmvals.xofs);
@@ -1075,7 +1075,7 @@ dialog_preview_events (GtkWidget *area,
gimp_int_adjustment_update,
&bmvals.xofs);
- bmvals.yofs = CLAMP (bmvals.yofs - dy, -1000, 1000);
+ bmvals.yofs = CLAMP (bmvals.yofs - dy, -10000, 10000);
g_signal_handlers_block_by_func (bmint.offset_adj_y,
gimp_int_adjustment_update,
&bmvals.yofs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]