summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_interface.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-06-30 01:01:19 +0000
committerjsorg71 <jsorg71>2005-06-30 01:01:19 +0000
commit79557c9cc60103021b3bf3e36418587246fa83d3 (patch)
tree918658d87bed6da6643dc1c816d3fea10ec10807 /xrdp/xrdp_interface.c
parent992dbfa7b3fa568ee480aa3fe3242084d33c518f (diff)
downloadxrdp-proprietary-79557c9cc60103021b3bf3e36418587246fa83d3.tar.gz
xrdp-proprietary-79557c9cc60103021b3bf3e36418587246fa83d3.zip
call painter funcs, not orders
Diffstat (limited to 'xrdp/xrdp_interface.c')
-rw-r--r--xrdp/xrdp_interface.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/xrdp/xrdp_interface.c b/xrdp/xrdp_interface.c
index 4b674e5e..09588e2a 100644
--- a/xrdp/xrdp_interface.c
+++ b/xrdp/xrdp_interface.c
@@ -126,11 +126,12 @@ server_screen_blt(struct xrdp_mod* mod, int x, int y, int cx, int cy,
int srcx, int srcy)
{
struct xrdp_wm* wm;
+ struct xrdp_painter* p;
wm = (struct xrdp_wm*)mod->wm;
- libxrdp_orders_init(wm->session);
- libxrdp_orders_screen_blt(wm->session, x, y, cx, cy, srcx, srcy, 0xcc, 0);
- libxrdp_orders_send(wm->session);
+ p = (struct xrdp_painter*)mod->painter;
+ xrdp_painter_copy(p, wm->screen, wm->screen, x, y, cx, cy,
+ srcx, srcy, 12);
return 0;
}
@@ -141,11 +142,12 @@ server_paint_rect(struct xrdp_mod* mod, int x, int y, int cx, int cy,
{
struct xrdp_wm* wm;
struct xrdp_bitmap* b;
+ struct xrdp_painter* p;
wm = (struct xrdp_wm*)mod->wm;
+ p = (struct xrdp_painter*)mod->painter;
b = xrdp_bitmap_create_with_data(cx, cy, wm->screen->bpp, data, wm);
- xrdp_painter_draw_bitmap((struct xrdp_painter*)mod->painter,
- wm->screen, b, x, y, cx, cy);
+ xrdp_painter_draw_bitmap(p, wm->screen, b, x, y, cx, cy);
xrdp_bitmap_delete(b);
return 0;
}