1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-02 12:02:30 +01:00

Initial update from my source tree. For 0.52.0

This commit is contained in:
kojima
1999-03-15 23:41:22 +00:00
parent c56756dc73
commit 7f9f88940d
67 changed files with 3348 additions and 638 deletions

View File

@@ -156,14 +156,14 @@ parseTexture(RContext *rc, char *text)
}
XAllocColor(dpy, DefaultColormap(dpy, scr), &color);
pixmap = XCreatePixmap(dpy, root, 32, 32, DefaultDepth(dpy, scr));
pixmap = XCreatePixmap(dpy, root, 8, 8, DefaultDepth(dpy, scr));
XSetForeground(dpy, DefaultGC(dpy, scr), color.pixel);
XFillRectangle(dpy, pixmap, DefaultGC(dpy, scr), 0, 0, 32, 32);
XFillRectangle(dpy, pixmap, DefaultGC(dpy, scr), 0, 0, 8, 8);
texture->pixmap = pixmap;
texture->color = color;
texture->width = 32;
texture->height = 32;
texture->width = 8;
texture->height = 8;
} else if (strcasecmp(type, "vgradient")==0
|| strcasecmp(type, "dgradient")==0
|| strcasecmp(type, "hgradient")==0) {
@@ -201,12 +201,12 @@ parseTexture(RContext *rc, char *text)
case 'H':
gtype = RHorizontalGradient;
iwidth = scrWidth;
iheight = 32;
iheight = 1;
break;
case 'V':
case 'v':
gtype = RVerticalGradient;
iwidth = 32;
iwidth = 1;
iheight = scrHeight;
break;
default:
@@ -294,12 +294,12 @@ parseTexture(RContext *rc, char *text)
case 'H':
gtype = RHorizontalGradient;
iwidth = scrWidth;
iheight = 32;
iheight = 1;
break;
case 'V':
case 'v':
gtype = RVerticalGradient;
iwidth = 32;
iwidth = 1;
iheight = scrHeight;
break;
default: