mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dticon: fixed "rubber string" drawing on high/true color displays
This commit is contained in:
parent
f8567bff18
commit
0d7568e843
1 changed files with 2 additions and 1 deletions
|
@ -377,7 +377,8 @@ Init_Editor(
|
||||||
Erase_gc = XCreateGC(dpy, root, 0, 0);
|
Erase_gc = XCreateGC(dpy, root, 0, 0);
|
||||||
Flicker_gc = XCreateGC(dpy, root, 0, 0);
|
Flicker_gc = XCreateGC(dpy, root, 0, 0);
|
||||||
scratch_gc = XCreateGC(dpy, root, 0, 0);
|
scratch_gc = XCreateGC(dpy, root, 0, 0);
|
||||||
XSetState(dpy, Flicker_gc, black_pixel, white_pixel, GXinvert, 0x1);
|
XSetState(dpy, Flicker_gc, black_pixel, white_pixel, GXinvert,
|
||||||
|
(DefaultDepthOfScreen(XtScreen(wid)) > 8) ? AllPlanes : 0x01);
|
||||||
XSetSubwindowMode(dpy, Flicker_gc, IncludeInferiors);
|
XSetSubwindowMode(dpy, Flicker_gc, IncludeInferiors);
|
||||||
XSetDashes(dpy, Grid_gc, 0, dash_list, 2);
|
XSetDashes(dpy, Grid_gc, 0, dash_list, 2);
|
||||||
XSetLineAttributes(dpy, Grid_gc, 0, LineDoubleDash, CapButt, JoinMiter);
|
XSetLineAttributes(dpy, Grid_gc, 0, LineDoubleDash, CapButt, JoinMiter);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue