summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_bitmap.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-02-08 03:45:30 +0000
committerjsorg71 <jsorg71>2005-02-08 03:45:30 +0000
commitcf6e2abd416c26105396fa0dd1834e3879fa2e08 (patch)
tree920d5099051e3b3b036ffa097d554fb3af5bd504 /xrdp/xrdp_bitmap.c
parentd2da72f5c96f537a1b8bed9af0f5b648c06e530a (diff)
downloadxrdp-proprietary-cf6e2abd416c26105396fa0dd1834e3879fa2e08.tar.gz
xrdp-proprietary-cf6e2abd416c26105396fa0dd1834e3879fa2e08.zip
added a bunch of error checks
Diffstat (limited to 'xrdp/xrdp_bitmap.c')
-rw-r--r--xrdp/xrdp_bitmap.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/xrdp/xrdp_bitmap.c b/xrdp/xrdp_bitmap.c
index de0c0d57..9080758b 100644
--- a/xrdp/xrdp_bitmap.c
+++ b/xrdp/xrdp_bitmap.c
@@ -891,14 +891,16 @@ int xrdp_bitmap_invalidate(struct xrdp_bitmap* self, struct xrdp_rect* rect)
{
if (self->wm->mod != 0)
{
- if (self->wm->mod->mod_invalidate != 0)
+ if (self->wm->mod->mod_event != 0)
{
if (rect != 0)
{
- self->wm->mod->mod_invalidate(self->wm->mod,
- rect->left, rect->top,
- rect->right - rect->left,
- rect->bottom - rect->top);
+ x = rect->left;
+ y = rect->top;
+ w = rect->right - rect->left;
+ h = rect->bottom - rect->top;
+ self->wm->mod->mod_event(self->wm->mod, WM_INVALIDATE, /* 200 */
+ MAKELONG(x, y), MAKELONG(w, h));
}
}
}