Fix drawing of straight lines using the Shift key and a tablet (bug
2007-10-30 Sven Neumann <sven@gimp.org> Fix drawing of straight lines using the Shift key and a tablet (bug #164240): * app/tools/gimppainttool.c (gimp_paint_tool_button_press): set use_pressure to FALSE when drawing a straight line. * app/paint/gimppaintbrush.c (_gimp_paintbrush_motion): respect the use_pressure flag. svn path=/trunk/; revision=23988
This commit is contained in:

committed by
Sven Neumann

parent
451cacf706
commit
81d38532a2
13
ChangeLog
13
ChangeLog
@ -1,7 +1,18 @@
|
|||||||
|
2007-10-30 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
Fix drawing of straight lines using the Shift key and a tablet
|
||||||
|
(bug #164240):
|
||||||
|
|
||||||
|
* app/tools/gimppainttool.c (gimp_paint_tool_button_press): set
|
||||||
|
use_pressure to FALSE when drawing a straight line.
|
||||||
|
|
||||||
|
* app/paint/gimppaintbrush.c (_gimp_paintbrush_motion): respect
|
||||||
|
the use_pressure flag.
|
||||||
|
|
||||||
2007-10-30 Sven Neumann <sven@gimp.org>
|
2007-10-30 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/display/gimpdisplayshell-render.c (box_filter): reduce
|
* app/display/gimpdisplayshell-render.c (box_filter): reduce
|
||||||
rounding errors. Fixed bug #491503.
|
rounding errors. Fixes bug #491503.
|
||||||
|
|
||||||
* app/base/tile-pyramid.c (tile_pyramid_write_quarter): reduce
|
* app/base/tile-pyramid.c (tile_pyramid_write_quarter): reduce
|
||||||
rounding errors.
|
rounding errors.
|
||||||
|
@ -169,7 +169,7 @@ _gimp_paintbrush_motion (GimpPaintCore *paint_core,
|
|||||||
area->bytes);
|
area->bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pressure_options->opacity)
|
if (paint_core->use_pressure && pressure_options->opacity)
|
||||||
opacity *= PRESSURE_SCALE * paint_core->cur_coords.pressure;
|
opacity *= PRESSURE_SCALE * paint_core->cur_coords.pressure;
|
||||||
|
|
||||||
/* finally, let the brush core paste the colored area on the canvas */
|
/* finally, let the brush core paste the colored area on the canvas */
|
||||||
|
@ -338,10 +338,12 @@ gimp_paint_tool_button_press (GimpTool *tool,
|
|||||||
*/
|
*/
|
||||||
gboolean hard;
|
gboolean hard;
|
||||||
|
|
||||||
core->start_coords = core->last_coords;
|
|
||||||
|
|
||||||
hard = (gimp_paint_options_get_brush_mode (paint_options) ==
|
hard = (gimp_paint_options_get_brush_mode (paint_options) ==
|
||||||
GIMP_BRUSH_HARD);
|
GIMP_BRUSH_HARD);
|
||||||
|
|
||||||
|
core->start_coords = core->last_coords;
|
||||||
|
core->use_pressure = FALSE;
|
||||||
|
|
||||||
gimp_paint_tool_round_line (core, hard, state);
|
gimp_paint_tool_round_line (core, hard, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user