48 |
int g_server_bpp = 8; |
int g_server_bpp = 8; |
49 |
int g_encryption = 1; |
int g_encryption = 1; |
50 |
int g_desktop_save = 1; |
int g_desktop_save = 1; |
51 |
|
int g_polygon_ellipse_orders = 0; |
52 |
int g_bitmap_cache = 1; |
int g_bitmap_cache = 1; |
53 |
int g_bitmap_cache_persist_enable = False; |
int g_bitmap_cache_persist_enable = False; |
54 |
int g_bitmap_cache_precache = True; |
int g_bitmap_cache_precache = True; |
765 |
} |
} |
766 |
|
|
767 |
//***************************************************************************** |
//***************************************************************************** |
768 |
void ui_draw_text(uint8 font, uint8 flags, int mixmode, |
void ui_draw_text(uint8 font, uint8 flags, uint8 opcode, int mixmode, |
769 |
int x, int y, int clipx, int clipy, |
int x, int y, int clipx, int clipy, |
770 |
int clipcx, int clipcy, int boxx, |
int clipcx, int clipcy, int boxx, |
771 |
int boxy, int boxcx, int boxcy, int bgcolour, |
int boxy, int boxcx, int boxcy, BRUSH * brush, |
772 |
int fgcolour, uint8 * text, uint8 length) |
int bgcolour, int fgcolour, uint8 * text, uint8 length) |
773 |
{ |
{ |
774 |
FONTGLYPH *glyph; |
FONTGLYPH *glyph; |
775 |
int i, j, xyoffset; |
int i, j, xyoffset; |
1175 |
{ |
{ |
1176 |
} |
} |
1177 |
|
|
1178 |
|
/*****************************************************************************/ |
1179 |
|
void ui_polygon(uint8 opcode, uint8 fillmode, POINT * point, int npoints, |
1180 |
|
BRUSH * brush, int bgcolour, int fgcolour) |
1181 |
|
{ |
1182 |
|
} |
1183 |
|
|
1184 |
|
/*****************************************************************************/ |
1185 |
|
/* todo, use qt function for this (QPainter::drawPolyline) */ |
1186 |
|
void ui_polyline(uint8 opcode, POINT * points, int npoints, PEN * pen) |
1187 |
|
{ |
1188 |
|
int i, x, y, dx, dy; |
1189 |
|
if (npoints > 0) |
1190 |
|
{ |
1191 |
|
x = points[0].x; |
1192 |
|
y = points[0].y; |
1193 |
|
for (i = 1; i < npoints; i++) |
1194 |
|
{ |
1195 |
|
dx = points[i].x; |
1196 |
|
dy = points[i].y; |
1197 |
|
ui_line(opcode, x, y, x + dx, y + dy, pen); |
1198 |
|
x = x + dx; |
1199 |
|
y = y + dy; |
1200 |
|
} |
1201 |
|
} |
1202 |
|
} |
1203 |
|
|
1204 |
|
/*****************************************************************************/ |
1205 |
|
void ui_ellipse(uint8 opcode, uint8 fillmode, |
1206 |
|
int x, int y, int cx, int cy, |
1207 |
|
BRUSH * brush, int bgcolour, int fgcolour) |
1208 |
|
{ |
1209 |
|
} |
1210 |
|
|
1211 |
/*****************************************************************************/ |
/*****************************************************************************/ |
1212 |
void generate_random(uint8* random) |
void generate_random(uint8* random) |
1213 |
{ |
{ |