mirror of https://github.com/GNOME/gimp.git
Fixed eraser pressure sensitivity for non-tablet devices and added Changelog entry
This commit is contained in:
parent
3fd4710963
commit
8403ce3308
|
@ -1,3 +1,7 @@
|
|||
Mon Jun 22 22:57:00 EDT 1998 Manish Vachharajani <mvachhar@vger.rutgers.edu>
|
||||
|
||||
* app/eraser.c: Added support for pressure sensitive eraser
|
||||
|
||||
Mon Jun 22 23:35:52 MEST 1998 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/pixmaps.h: Made a new pixmap for the ink tool that fits
|
||||
|
|
|
@ -179,7 +179,7 @@ eraser_motion (PaintCore *paint_core, GimpDrawable *drawable, gboolean hard, gbo
|
|||
/* color the pixels */
|
||||
color_pixels (temp_buf_data (area), col,
|
||||
area->width * area->height, area->bytes);
|
||||
opacity = OPAQUE_OPACITY * paint_core->curpressure;
|
||||
opacity = OPAQUE_OPACITY * (paint_core->curpressure / 0.5);
|
||||
if(opacity > 255) opacity=255;
|
||||
/* paste the newly painted canvas to the gimage which is being worked on */
|
||||
paint_core_paste_canvas (paint_core, drawable, opacity,
|
||||
|
|
|
@ -179,7 +179,7 @@ eraser_motion (PaintCore *paint_core, GimpDrawable *drawable, gboolean hard, gbo
|
|||
/* color the pixels */
|
||||
color_pixels (temp_buf_data (area), col,
|
||||
area->width * area->height, area->bytes);
|
||||
opacity = OPAQUE_OPACITY * paint_core->curpressure;
|
||||
opacity = OPAQUE_OPACITY * (paint_core->curpressure / 0.5);
|
||||
if(opacity > 255) opacity=255;
|
||||
/* paste the newly painted canvas to the gimage which is being worked on */
|
||||
paint_core_paste_canvas (paint_core, drawable, opacity,
|
||||
|
|
|
@ -179,7 +179,7 @@ eraser_motion (PaintCore *paint_core, GimpDrawable *drawable, gboolean hard, gbo
|
|||
/* color the pixels */
|
||||
color_pixels (temp_buf_data (area), col,
|
||||
area->width * area->height, area->bytes);
|
||||
opacity = OPAQUE_OPACITY * paint_core->curpressure;
|
||||
opacity = OPAQUE_OPACITY * (paint_core->curpressure / 0.5);
|
||||
if(opacity > 255) opacity=255;
|
||||
/* paste the newly painted canvas to the gimage which is being worked on */
|
||||
paint_core_paste_canvas (paint_core, drawable, opacity,
|
||||
|
|
|
@ -179,7 +179,7 @@ eraser_motion (PaintCore *paint_core, GimpDrawable *drawable, gboolean hard, gbo
|
|||
/* color the pixels */
|
||||
color_pixels (temp_buf_data (area), col,
|
||||
area->width * area->height, area->bytes);
|
||||
opacity = OPAQUE_OPACITY * paint_core->curpressure;
|
||||
opacity = OPAQUE_OPACITY * (paint_core->curpressure / 0.5);
|
||||
if(opacity > 255) opacity=255;
|
||||
/* paste the newly painted canvas to the gimage which is being worked on */
|
||||
paint_core_paste_canvas (paint_core, drawable, opacity,
|
||||
|
|
Loading…
Reference in New Issue