- case MENU_SEPARATOR:
- {
- // A triangle the width and height of an 'x'
- int w = font.textWidth("x", 1);
- int ox = font.textWidth(" ", 1) + int(x);
- int h = font.ascent('x');
- XPoint p[4];
- p[0].x = ox; p[0].y = baseline;
- p[1].x = ox; p[1].y = baseline - h;
- p[2].x = ox + w;p[2].y = baseline - h/2;
- p[3].x = ox; p[3].y = baseline;
- scr.drawLines(getGC(gc_copy), p, 4);
- x += Width(font);
- }