add !defined(__unix__) in all #if defined(FIX_BROKEN_TILED_FILL)
This commit is contained in:
parent
288c053ec6
commit
426be0e68c
|
|
@ -3376,19 +3376,16 @@ void select_rect(int what, int select)
|
|||
{
|
||||
RECTORDER(xctx->nl_xr,xctx->nl_yr,xctx->nl_xr2,xctx->nl_yr2);
|
||||
|
||||
|
||||
#if defined(FIX_BROKEN_TILED_FILL)
|
||||
#if defined(FIX_BROKEN_TILED_FILL) || !defined(__unix__)
|
||||
MyXCopyArea(display, xctx->save_pixmap, xctx->window, xctx->gc[0], xctx->xrect[0].x, xctx->xrect[0].y,
|
||||
xctx->xrect[0].width, xctx->xrect[0].height, xctx->xrect[0].x, xctx->xrect[0].y);
|
||||
#else
|
||||
drawtemprect(xctx->gctiled, NOW, xctx->nl_xr,xctx->nl_yr,xctx->nl_xr2,xctx->nl_yr2);
|
||||
#endif
|
||||
|
||||
|
||||
/* draw_selection(xctx->gc[SELLAYER], 0); */
|
||||
select_inside(xctx->nl_xr,xctx->nl_yr,xctx->nl_xr2,xctx->nl_yr2, xctx->nl_sel);
|
||||
|
||||
|
||||
bbox(START,0.0, 0.0, 0.0, 0.0);
|
||||
bbox(ADD, xctx->nl_xr, xctx->nl_yr, xctx->nl_xr2, xctx->nl_yr2);
|
||||
bbox(SET,0.0, 0.0, 0.0, 0.0);
|
||||
|
|
|
|||
|
|
@ -993,7 +993,7 @@ void draw_crosshair(int del)
|
|||
xctx->draw_pixmap = 0;
|
||||
xctx->draw_window = 1;
|
||||
|
||||
#if defined(FIX_BROKEN_TILED_FILL)
|
||||
#if defined(FIX_BROKEN_TILED_FILL) || !defined(__unix__)
|
||||
if(!bbox_set) {
|
||||
bbox(START,0.0, 0.0, 0.0, 0.0);
|
||||
bbox(ADD, X_TO_XSCHEM(xctx->areax1), xctx->prev_crossy - xctx->lw,
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ void draw_selection(GC g, int interruptable)
|
|||
#endif
|
||||
|
||||
if(g != xctx->gctiled) xctx->movelastsel = xctx->lastsel;
|
||||
#if defined(FIX_BROKEN_TILED_FILL)
|
||||
#if defined(FIX_BROKEN_TILED_FILL) || !defined(__unix__)
|
||||
else {
|
||||
MyXCopyArea(display, xctx->save_pixmap, xctx->window, xctx->gc[0], xctx->xrect[0].x, xctx->xrect[0].y,
|
||||
xctx->xrect[0].width, xctx->xrect[0].height, xctx->xrect[0].x, xctx->xrect[0].y);
|
||||
|
|
|
|||
|
|
@ -2095,7 +2095,7 @@ void resetwin(int create_pixmap, int clear_pixmap, int force, int w, int h)
|
|||
XFreeGC(display,xctx->gctiled);
|
||||
}
|
||||
if(create_pixmap) {
|
||||
#if defined(FIX_BROKEN_TILED_FILL)
|
||||
#if defined(FIX_BROKEN_TILED_FILL) || !defined(__unix__)
|
||||
XGCValues gcv;
|
||||
unsigned long gcvm;
|
||||
#endif
|
||||
|
|
@ -2108,7 +2108,7 @@ void resetwin(int create_pixmap, int clear_pixmap, int force, int w, int h)
|
|||
xctx->xrect[0].width, xctx->xrect[0].height, screendepth);
|
||||
#endif
|
||||
|
||||
#if defined(FIX_BROKEN_TILED_FILL)
|
||||
#if defined(FIX_BROKEN_TILED_FILL) || !defined(__unix__)
|
||||
gcv.function = GXnoop; /* disable all graphic operations with gctiled */
|
||||
gcvm = GCFunction;
|
||||
xctx->gctiled = XCreateGC(display,xctx->window, gcvm, &gcv); /* noop for gctiled */
|
||||
|
|
|
|||
Loading…
Reference in New Issue