Fixed eraser pressure sensitivity for non-tablet devices and added Changelog entry

This commit is contained in:
Manish Vachharajani 1998-06-23 03:24:19 +00:00
parent 3fd4710963
commit 8403ce3308
5 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,