242 |
break; \ |
break; \ |
243 |
case 1: /* Filled */ \ |
case 1: /* Filled */ \ |
244 |
XFillArc(g_display, g_wnd, g_gc, x, y, cx, cy, 0, 360*64); \ |
XFillArc(g_display, g_wnd, g_gc, x, y, cx, cy, 0, 360*64); \ |
245 |
ON_ALL_SEAMLESS_WINDOWS(XCopyArea, (g_display, g_ownbackstore ? g_backstore : g_wnd, sw->wnd, g_gc, \ |
ON_ALL_SEAMLESS_WINDOWS(XFillArc, (g_display, sw->wnd, g_gc, x-sw->xoffset, y-sw->yoffset, cx, cy, 0, 360*64)); \ |
|
x, y, cx, cy, x-sw->xoffset, y-sw->yoffset)); \ |
|
246 |
if (g_ownbackstore) \ |
if (g_ownbackstore) \ |
247 |
XFillArc(g_display, g_backstore, g_gc, x, y, cx, cy, 0, 360*64); \ |
XFillArc(g_display, g_backstore, g_gc, x, y, cx, cy, 0, 360*64); \ |
248 |
break; \ |
break; \ |
1313 |
} |
} |
1314 |
|
|
1315 |
static BOOL |
static BOOL |
1316 |
select_visual() |
select_visual(int screen_num) |
1317 |
{ |
{ |
1318 |
XPixmapFormatValues *pfm; |
XPixmapFormatValues *pfm; |
1319 |
int pixmap_formats_count, visuals_count; |
int pixmap_formats_count, visuals_count; |
1339 |
|
|
1340 |
/* Search for best TrueColor visual */ |
/* Search for best TrueColor visual */ |
1341 |
template.class = TrueColor; |
template.class = TrueColor; |
1342 |
vmatches = XGetVisualInfo(g_display, VisualClassMask, &template, &visuals_count); |
template.screen = screen_num; |
1343 |
|
vmatches = |
1344 |
|
XGetVisualInfo(g_display, VisualClassMask | VisualScreenMask, &template, |
1345 |
|
&visuals_count); |
1346 |
g_visual = NULL; |
g_visual = NULL; |
1347 |
g_no_translate_image = False; |
g_no_translate_image = False; |
1348 |
g_compatible_arch = False; |
g_compatible_arch = False; |
1547 |
g_screen = ScreenOfDisplay(g_display, screen_num); |
g_screen = ScreenOfDisplay(g_display, screen_num); |
1548 |
g_depth = DefaultDepthOfScreen(g_screen); |
g_depth = DefaultDepthOfScreen(g_screen); |
1549 |
|
|
1550 |
if (!select_visual()) |
if (!select_visual(screen_num)) |
1551 |
return False; |
return False; |
1552 |
|
|
1553 |
if (g_no_translate_image) |
if (g_no_translate_image) |