mirror of https://github.com/GNOME/gimp.git
Fixed a bug when using Paper Relief, closing bug #34667.
* plug-ins/gimpressionist/repaint.c: Fixed a bug when using Paper Relief, closing bug #34667. * plug-ins/gimpressionist/gimpressionist.c: Moved the Presets tab to the far left.
This commit is contained in:
parent
ed707bea13
commit
b420e211e1
|
@ -1,3 +1,10 @@
|
|||
2000-12-11 Vidar Madsen <vidar@gimp.org>
|
||||
|
||||
* plug-ins/gimpressionist/repaint.c: Fixed a bug when using
|
||||
Paper Relief, closing bug #34667.
|
||||
* plug-ins/gimpressionist/gimpressionist.c: Moved the Presets tab
|
||||
to the far left.
|
||||
|
||||
2000-12-11 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/edit_selection.c
|
||||
|
|
|
@ -457,6 +457,7 @@ int create_dialog(void)
|
|||
gtk_widget_realize (notebook);
|
||||
gtk_widget_show(notebook);
|
||||
|
||||
create_presetpage(GTK_NOTEBOOK (notebook));
|
||||
create_paperpage(GTK_NOTEBOOK (notebook));
|
||||
create_brushpage(GTK_NOTEBOOK (notebook));
|
||||
create_orientationpage(GTK_NOTEBOOK (notebook));
|
||||
|
@ -464,7 +465,6 @@ int create_dialog(void)
|
|||
create_placementpage(GTK_NOTEBOOK (notebook));
|
||||
create_colorpage(GTK_NOTEBOOK (notebook));
|
||||
create_generalpage(GTK_NOTEBOOK (notebook));
|
||||
create_presetpage(GTK_NOTEBOOK (notebook));
|
||||
|
||||
preview_box = create_preview();
|
||||
gtk_box_pack_start (GTK_BOX (box2), preview_box, FALSE, FALSE, 0);
|
||||
|
|
|
@ -836,7 +836,7 @@ void repaint(struct ppm *p, struct ppm *a)
|
|||
double h, v;
|
||||
int px = x % tmp.width, py;
|
||||
for(y = 0; y < p->height; y++) {
|
||||
int k = y * tmp.width * 3 + x * 3;
|
||||
int k = y * p->width * 3 + x * 3;
|
||||
py = y % tmp.height;
|
||||
if(runningvals.paperoverlay)
|
||||
h = (tmp.col[py*tmp.width*3+px*3]-128) * relief;
|
||||
|
|
Loading…
Reference in New Issue