1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-07 14:24:14 +01:00

fixed bug in texture panel

This commit is contained in:
kojima
1999-04-19 00:27:47 +00:00
parent df04a0a157
commit bc0b869ba9
5 changed files with 117 additions and 4 deletions

View File

@@ -238,13 +238,14 @@ updateTGradImage(TexturePanel *panel)
RDiagonalGradient);
}
RCombineImagesWithOpaqueness(image, gradient,
RCombineImagesWithOpaqueness(image, gradient,
WMGetSliderValue(panel->topaS));
RDestroyImage(gradient);
pixmap = WMCreatePixmapFromRImage(WMWidgetScreen(panel->win),
image, 128);
WMSetLabelImage(panel->imageL, pixmap);
WMReleasePixmap(pixmap);
WMResizeWidget(panel->imageL, image->width, image->height);
RDestroyImage(image);
}
@@ -387,7 +388,7 @@ static void
sliderChangeCallback(WMWidget *w, void *data)
{
TexturePanel *panel = (TexturePanel*)data;
RHSVColor hsv, *hsvp;
RHSVColor hsv;
int row, rows;
WMListItem *item;
RColor **colors;
@@ -588,7 +589,7 @@ static void
updateImage(TexturePanel *panel, char *path)
{
WMScreen *scr = WMWidgetScreen(panel->win);
RImage *image, *scaled;
RImage *image;
WMPixmap *pixmap;
WMSize size;