{
0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55
},
+ OpaqueBitmap[8] =
+ {
+ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
+ },
ShadowBitmap[8] =
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
#define DiagonalHeight 16
#define HighlightWidth 8
#define HighlightHeight 8
+#define OpaqueWidth 8
+#define OpaqueHeight 8
#define ScalesWidth 16
#define ScalesHeight 16
#define ShadowWidth 8
if (stipple != (Pixmap) NULL)
(void) XFreePixmap(display,stipple);
stipple=(Pixmap) NULL;
- if (entry == 6)
- break;
if (entry != 7)
{
switch (entry)
break;
}
case 5:
- default:
{
stipple=XCreateBitmapFromData(display,root_window,
(char *) HighlightBitmap,HighlightWidth,
HighlightHeight);
break;
}
+ case 6:
+ default:
+ {
+ stipple=XCreateBitmapFromData(display,root_window,
+ (char *) OpaqueBitmap,OpaqueWidth,OpaqueHeight);
+ break;
+ }
}
break;
}
break;
if (entry != 5)
{
- line_width=(unsigned int) StringToUnsignedLong(WidthsMenu[entry]);
+ line_width=(unsigned int) StringToUnsignedLong(
+ WidthsMenu[entry]);
break;
}
(void) XDialogWidget(display,windows,"Ok","Enter line width:",
*/
(void) XSetBackground(display,draw_context,0);
(void) XSetForeground(display,draw_context,(size_t) (~0));
- (void) XSetFillStyle(display,draw_context,FillOpaqueStippled);
- (void) XSetStipple(display,draw_context,draw_info->stipple);
+ if (draw_info->stipple != (Pixmap) NULL)
+ {
+ (void) XSetFillStyle(display,draw_context,FillOpaqueStippled);
+ (void) XSetStipple(display,draw_context,draw_info->stipple);
+ }
switch (draw_info->element)
{
case PointElement: