WINGs: remove dead X11 code from wtext.c and wmisc.c
- wtext.c: remove unused XEvent variable - wmisc.c: remove dead #ifndef DOUBLE_BUFFER branches (XClearWindow) DOUBLE_BUFFER is always defined; these were unreachable.
This commit is contained in:
parent
1ab108f7aa
commit
7077e00d12
|
|
@ -224,21 +224,13 @@ W_PaintTextAndImage(W_View * view, int wrap, WMColor * textColor, W_Font * font,
|
||||||
R->fill_rect(rctx, d, backColor, 0, 0, view->size.width, view->size.height);
|
R->fill_rect(rctx, d, backColor, 0, 0, view->size.width, view->size.height);
|
||||||
} else {
|
} else {
|
||||||
if (view->attribs.background_pixmap) {
|
if (view->attribs.background_pixmap) {
|
||||||
#ifndef DOUBLE_BUFFER
|
|
||||||
XClearWindow(screen->display, (Window)d);
|
|
||||||
#else
|
|
||||||
R->pixmap_copy(rctx, (WMDrawable)view->attribs.background_pixmap, d,
|
R->pixmap_copy(rctx, (WMDrawable)view->attribs.background_pixmap, d,
|
||||||
0, 0, view->size.width, view->size.height, 0, 0);
|
0, 0, view->size.width, view->size.height, 0, 0);
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
#ifndef DOUBLE_BUFFER
|
|
||||||
XClearWindow(screen->display, (Window)d);
|
|
||||||
#else
|
|
||||||
if (view->backColor)
|
if (view->backColor)
|
||||||
R->fill_rect(rctx, d, view->backColor, 0, 0, view->size.width, view->size.height);
|
R->fill_rect(rctx, d, view->backColor, 0, 0, view->size.width, view->size.height);
|
||||||
else
|
else
|
||||||
R->fill_rect(rctx, d, screen->gray, 0, 0, view->size.width, view->size.height);
|
R->fill_rect(rctx, d, screen->gray, 0, 0, view->size.width, view->size.height);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1662,8 +1662,6 @@ static void layOutDocument(Text * tPtr)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tPtr->docWidth > tPtr->visible.w && !tPtr->hS) {
|
if (tPtr->docWidth > tPtr->visible.w && !tPtr->hS) {
|
||||||
XEvent event;
|
|
||||||
|
|
||||||
tPtr->flags.horizOnDemand = True;
|
tPtr->flags.horizOnDemand = True;
|
||||||
WMSetTextHasHorizontalScroller((WMText *) tPtr, True);
|
WMSetTextHasHorizontalScroller((WMText *) tPtr, True);
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue