finally found that bug that annoyed me to death at the camp
--Sven
This commit is contained in:
parent
53af3d104a
commit
28449546ae
3 changed files with 18 additions and 6 deletions
|
|
@ -1,3 +1,9 @@
|
|||
Wed Sep 1 22:16:41 MEST 1999 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/paint_core.c: Only set the defaults for non_gui operations
|
||||
if the paint_core is really used in non_gui mode. This fixes a bug
|
||||
that showed up when drawing lines with a pressure-sensitive device.
|
||||
|
||||
Wed Sep 1 21:12:42 MEST 1999 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/screenshot.c: a small bugfix
|
||||
|
|
|
|||
|
|
@ -627,9 +627,12 @@ paint_core_init (PaintCore *paint_core,
|
|||
paint_core->cury = y;
|
||||
|
||||
/* Set up some defaults for non-gui use */
|
||||
paint_core->startpressure = paint_core->lastpressure = paint_core->curpressure = 0.5;
|
||||
paint_core->startxtilt = paint_core->lastxtilt = paint_core->curxtilt = 0;
|
||||
paint_core->startytilt = paint_core->lastytilt = paint_core->curytilt = 0;
|
||||
if (paint_core == &non_gui_paint_core)
|
||||
{
|
||||
paint_core->startpressure = paint_core->lastpressure = paint_core->curpressure = 0.5;
|
||||
paint_core->startxtilt = paint_core->lastxtilt = paint_core->curxtilt = 0;
|
||||
paint_core->startytilt = paint_core->lastytilt = paint_core->curytilt = 0;
|
||||
}
|
||||
|
||||
/* Each buffer is the same size as the maximum bounds of the active brush... */
|
||||
if (brush && brush != get_active_brush ())
|
||||
|
|
|
|||
|
|
@ -627,9 +627,12 @@ paint_core_init (PaintCore *paint_core,
|
|||
paint_core->cury = y;
|
||||
|
||||
/* Set up some defaults for non-gui use */
|
||||
paint_core->startpressure = paint_core->lastpressure = paint_core->curpressure = 0.5;
|
||||
paint_core->startxtilt = paint_core->lastxtilt = paint_core->curxtilt = 0;
|
||||
paint_core->startytilt = paint_core->lastytilt = paint_core->curytilt = 0;
|
||||
if (paint_core == &non_gui_paint_core)
|
||||
{
|
||||
paint_core->startpressure = paint_core->lastpressure = paint_core->curpressure = 0.5;
|
||||
paint_core->startxtilt = paint_core->lastxtilt = paint_core->curxtilt = 0;
|
||||
paint_core->startytilt = paint_core->lastytilt = paint_core->curytilt = 0;
|
||||
}
|
||||
|
||||
/* Each buffer is the same size as the maximum bounds of the active brush... */
|
||||
if (brush && brush != get_active_brush ())
|
||||
|
|
|
|||
Loading…
Reference in a new issue