diff options
author | jsorg71 <jsorg71> | 2005-02-08 03:45:30 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-02-08 03:45:30 +0000 |
commit | cf6e2abd416c26105396fa0dd1834e3879fa2e08 (patch) | |
tree | 920d5099051e3b3b036ffa097d554fb3af5bd504 /xrdp/xrdp_bitmap.c | |
parent | d2da72f5c96f537a1b8bed9af0f5b648c06e530a (diff) | |
download | xrdp-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.c | 12 |
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)); } } } |