mirror of https://github.com/GNOME/gimp.git
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:
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>
|
||||
|
||||
* 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
|
||||
rounding errors.
|
||||
|
|
|
@ -169,7 +169,7 @@ _gimp_paintbrush_motion (GimpPaintCore *paint_core,
|
|||
area->bytes);
|
||||
}
|
||||
|
||||
if (pressure_options->opacity)
|
||||
if (paint_core->use_pressure && pressure_options->opacity)
|
||||
opacity *= PRESSURE_SCALE * paint_core->cur_coords.pressure;
|
||||
|
||||
/* 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;
|
||||
|
||||
core->start_coords = core->last_coords;
|
||||
|
||||
hard = (gimp_paint_options_get_brush_mode (paint_options) ==
|
||||
GIMP_BRUSH_HARD);
|
||||
|
||||
core->start_coords = core->last_coords;
|
||||
core->use_pressure = FALSE;
|
||||
|
||||
gimp_paint_tool_round_line (core, hard, state);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue