28 |
int g_width = 800; |
int g_width = 800; |
29 |
int g_server_bpp = 8; |
int g_server_bpp = 8; |
30 |
int g_encryption = 1; |
int g_encryption = 1; |
31 |
int g_desktop_save =1; |
int g_desktop_save = 1; |
32 |
|
int g_polygon_ellipse_orders = 0; |
33 |
int g_bitmap_cache = 1; |
int g_bitmap_cache = 1; |
34 |
int g_bitmap_cache_persist_enable = False; |
int g_bitmap_cache_persist_enable = False; |
35 |
int g_bitmap_cache_precache = True; |
int g_bitmap_cache_precache = True; |
98 |
} |
} |
99 |
|
|
100 |
/*****************************************************************************/ |
/*****************************************************************************/ |
101 |
void ui_draw_text(uint8 font, uint8 flags, int mixmode, |
void ui_draw_text(uint8 font, uint8 flags, uint8 opcode, int mixmode, |
102 |
int x, int y, |
int x, int y, |
103 |
int clipx, int clipy, int clipcx, int clipcy, |
int clipx, int clipy, int clipcx, int clipcy, |
104 |
int boxx, int boxy, int boxcx, int boxcy, |
int boxx, int boxy, int boxcx, int boxcy, BRUSH * brush, |
105 |
int bgcolour, int fgcolour, uint8* text, uint8 length) |
int bgcolour, int fgcolour, uint8* text, uint8 length) |
106 |
{ |
{ |
107 |
} |
} |
213 |
{ |
{ |
214 |
} |
} |
215 |
|
|
216 |
|
/*****************************************************************************/ |
217 |
|
void ui_polygon(uint8 opcode, uint8 fillmode, POINT * point, int npoints, |
218 |
|
BRUSH * brush, int bgcolour, int fgcolour) |
219 |
|
{ |
220 |
|
} |
221 |
|
|
222 |
|
/*****************************************************************************/ |
223 |
|
/* todo, use qt function for this (QPainter::drawPolyline) */ |
224 |
|
void ui_polyline(uint8 opcode, POINT * points, int npoints, PEN * pen) |
225 |
|
{ |
226 |
|
int i, x, y, dx, dy; |
227 |
|
if (npoints > 0) |
228 |
|
{ |
229 |
|
x = points[0].x; |
230 |
|
y = points[0].y; |
231 |
|
for (i = 1; i < npoints; i++) |
232 |
|
{ |
233 |
|
dx = points[i].x; |
234 |
|
dy = points[i].y; |
235 |
|
ui_line(opcode, x, y, x + dx, y + dy, pen); |
236 |
|
x = x + dx; |
237 |
|
y = y + dy; |
238 |
|
} |
239 |
|
} |
240 |
|
} |
241 |
|
|
242 |
|
/*****************************************************************************/ |
243 |
|
void ui_ellipse(uint8 opcode, uint8 fillmode, |
244 |
|
int x, int y, int cx, int cy, |
245 |
|
BRUSH * brush, int bgcolour, int fgcolour) |
246 |
|
{ |
247 |
|
} |
248 |
|
|
249 |
/*****************************************************************************/ |
/*****************************************************************************/ |
250 |
void generate_random(uint8* random) |
void generate_random(uint8* random) |
251 |
{ |
{ |