138 |
XDrawArc(g_display, g_backstore, g_gc, x, y, cx, cy, 0, 360*64); \ |
XDrawArc(g_display, g_backstore, g_gc, x, y, cx, cy, 0, 360*64); \ |
139 |
break; \ |
break; \ |
140 |
case 1: /* Filled */ \ |
case 1: /* Filled */ \ |
141 |
XFillArc(g_display, g_ownbackstore ? g_backstore : g_wnd, g_gc, x, y, \ |
XFillArc(g_display, g_wnd, g_gc, x, y, cx, cy, 0, 360*64); \ |
|
cx, cy, 0, 360*64); \ |
|
142 |
if (g_ownbackstore) \ |
if (g_ownbackstore) \ |
143 |
XCopyArea(g_display, g_backstore, g_wnd, g_gc, x, y, cx, cy, x, y); \ |
XFillArc(g_display, g_backstore, g_gc, x, y, cx, cy, 0, 360*64); \ |
144 |
break; \ |
break; \ |
145 |
} \ |
} \ |
146 |
} |
} |
2445 |
switch (text[i]) |
switch (text[i]) |
2446 |
{ |
{ |
2447 |
case 0xff: |
case 0xff: |
2448 |
if (i + 2 < length) |
/* At least two bytes needs to follow */ |
2449 |
cache_put_text(text[i + 1], text, text[i + 2]); |
if (i + 3 > length) |
|
else |
|
2450 |
{ |
{ |
2451 |
error("this shouldn't be happening\n"); |
warning("Skipping short 0xff command:"); |
2452 |
exit(1); |
for (j = 0; j < length; j++) |
2453 |
|
fprintf(stderr, "%02x ", text[j]); |
2454 |
|
fprintf(stderr, "\n"); |
2455 |
|
i = length = 0; |
2456 |
|
break; |
2457 |
} |
} |
2458 |
|
cache_put_text(text[i + 1], text, text[i + 2]); |
2459 |
|
i += 3; |
2460 |
|
length -= i; |
2461 |
/* this will move pointer from start to first character after FF command */ |
/* this will move pointer from start to first character after FF command */ |
2462 |
length -= i + 3; |
text = &(text[i]); |
|
text = &(text[i + 3]); |
|
2463 |
i = 0; |
i = 0; |
2464 |
break; |
break; |
2465 |
|
|
2466 |
case 0xfe: |
case 0xfe: |
2467 |
|
/* At least one byte needs to follow */ |
2468 |
|
if (i + 2 > length) |
2469 |
|
{ |
2470 |
|
warning("Skipping short 0xfe command:"); |
2471 |
|
for (j = 0; j < length; j++) |
2472 |
|
fprintf(stderr, "%02x ", text[j]); |
2473 |
|
fprintf(stderr, "\n"); |
2474 |
|
i = length = 0; |
2475 |
|
break; |
2476 |
|
} |
2477 |
entry = cache_get_text(text[i + 1]); |
entry = cache_get_text(text[i + 1]); |
2478 |
if (entry != NULL) |
if (entry->data != NULL) |
2479 |
{ |
{ |
2480 |
if ((((uint8 *) (entry->data))[1] == |
if ((((uint8 *) (entry->data))[1] == 0) |
2481 |
0) && (!(flags & TEXT2_IMPLICIT_X))) |
&& (!(flags & TEXT2_IMPLICIT_X)) && (i + 2 < length)) |
2482 |
{ |
{ |
2483 |
if (flags & TEXT2_VERTICAL) |
if (flags & TEXT2_VERTICAL) |
2484 |
y += text[i + 2]; |
y += text[i + 2]; |