Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 58635
Collapse All | Expand All

(-)aterm/src/screen.c (-3 / +28 lines)
Lines 45-50 Link Here
45
#include <X11/Xatom.h>
45
#include <X11/Xatom.h>
46
#include <X11/Xmd.h>		/* get the typedef for CARD32 */
46
#include <X11/Xmd.h>		/* get the typedef for CARD32 */
47
47
48
XGCValues cur_fg_color;
49
XGCValues shadow_color;
48
50
49
static screen_t    screen;
51
static screen_t    screen;
50
52
Lines 177-187 Link Here
177
	hx = (TermWin.width+TermWin_internalBorders+1)-x;
179
	hx = (TermWin.width+TermWin_internalBorders+1)-x;
178
    if (y + hy > (TermWin.height+TermWin_internalBorder) - line_h)
180
    if (y + hy > (TermWin.height+TermWin_internalBorder) - line_h)
179
	hy = (TermWin.height+TermWin_internalBorders+1)-y;
181
	hy = (TermWin.height+TermWin_internalBorders+1)-y;
180
    XClearArea(Xdisplay, drawBuffer, x, y, hx, hy, 0);
182
    XClearArea(Xdisplay, drawBuffer, x, y, hx+1, hy, 0);
181
#if defined(BACKGROUND_IMAGE) || defined(TRANSPARENT)
183
#if defined(BACKGROUND_IMAGE) || defined(TRANSPARENT)
182
    if (TermWin.tintGC)
184
    if (TermWin.tintGC)
183
    {
185
    {
184
        XFillRectangle(Xdisplay, drawBuffer, TermWin.tintGC, x, y, hx, hy);
186
        XFillRectangle(Xdisplay, drawBuffer, TermWin.tintGC, x, y, hx+1, hy);
185
    }
187
    }
186
#endif
188
#endif
187
}
189
}
Lines 230-236 Link Here
230
    rend_t	    setrstyle;
232
    rend_t	    setrstyle;
231
233
232
    D_SCREEN((stderr, "scr_reset()"));
234
    D_SCREEN((stderr, "scr_reset()"));
233
235
    shadow_color.foreground = PixColors[Color_Black];
236
    
234
    TermWin.view_start = 0;
237
    TermWin.view_start = 0;
235
    RESET_CHSTAT;
238
    RESET_CHSTAT;
236
239
Lines 1964-1969 Link Here
1964
 */
1967
 */
1965
1968
1966
#define DRAW_STRING(Func, x, y, str, len)				\
1969
#define DRAW_STRING(Func, x, y, str, len)				\
1970
    XGetGCValues(Xdisplay, TermWin.gc, GCForeground, &cur_fg_color), \
1971
    XChangeGC(Xdisplay, TermWin.gc, GCForeground, &shadow_color), \
1972
    set_clipping((x), (y), (len)), \
1973
    Func(Xdisplay, drawBuffer, TermWin.gc, (x)+1, (y)+1, (str), (len)), \
1974
    XChangeGC(Xdisplay, TermWin.gc, GCForeground, &cur_fg_color), \
1967
    Func(Xdisplay, drawBuffer, TermWin.gc, (x), (y), (str), (len))
1975
    Func(Xdisplay, drawBuffer, TermWin.gc, (x), (y), (str), (len))
1968
1976
1969
#if defined (NO_BRIGHTCOLOR) || defined (VERYBOLD)
1977
#if defined (NO_BRIGHTCOLOR) || defined (VERYBOLD)
Lines 3440-3442 Link Here
3440
#endif
3448
#endif
3441
    fprintf(stderr, "%s\n", name[color]);
3449
    fprintf(stderr, "%s\n", name[color]);
3442
}
3450
}
3451
3452
void
3453
set_clipping(int x, int y, int len)
3454
{
3455
  unsigned char_w = Width2Pixel(1)-1;
3456
  register unsigned hx = (char_w+1)*len;
3457
  unsigned line_h = Height2Pixel(1)-1;
3458
  register unsigned hy = (line_h+1)*1;
3459
3460
  XRectangle rectangle;
3461
  rectangle.x = 0;
3462
  rectangle.y = 2;
3463
  rectangle.width  = hx;
3464
  rectangle.height = hy;
3465
3466
  XSetClipRectangles(Xdisplay, TermWin.gc, x, y-hy, &rectangle, 1, Unsorted);
3467
}
(-)aterm.cvs/src/screen.h (+2 lines)
Lines 128-132 Link Here
128
128
129
#define scr_clear()  scr_clear_tint(1)
129
#define scr_clear()  scr_clear_tint(1)
130
130
131
void set_clipping(int x, int y, int len);
132
131
133
132
#endif				/* repeat inclusion protection */
134
#endif				/* repeat inclusion protection */

Return to bug 58635