diff options
author | jsorg71 <jsorg71> | 2005-01-17 03:59:31 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-01-17 03:59:31 +0000 |
commit | 750f55b6effd969fef6c8caec1956240908da23f (patch) | |
tree | 8c9960b6983b76e7a247abdf3eece70a3b11fd1c /xrdp/xrdp_login_wnd.c | |
parent | cf3e17cb73984b093ac8e3138a6e3d98171c5253 (diff) | |
download | xrdp-proprietary-750f55b6effd969fef6c8caec1956240908da23f.tar.gz xrdp-proprietary-750f55b6effd969fef6c8caec1956240908da23f.zip |
added lib header and makefile
Diffstat (limited to 'xrdp/xrdp_login_wnd.c')
-rw-r--r-- | xrdp/xrdp_login_wnd.c | 130 |
1 files changed, 0 insertions, 130 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c index 02499548..56861b22 100644 --- a/xrdp/xrdp_login_wnd.c +++ b/xrdp/xrdp_login_wnd.c @@ -72,99 +72,6 @@ logging on."); } /*****************************************************************************/ -int server_begin_update(struct xrdp_mod* mod) -{ - struct xrdp_wm* wm; - struct xrdp_painter* p; - - wm = (struct xrdp_wm*)mod->wm; - p = xrdp_painter_create(wm); - xrdp_painter_begin_update(p); - mod->painter = (int)p; - return 0; -} - -/*****************************************************************************/ -int server_end_update(struct xrdp_mod* mod) -{ - struct xrdp_painter* p; - - p = (struct xrdp_painter*)mod->painter; - xrdp_painter_end_update(p); - xrdp_painter_delete(p); - mod->painter = 0; - return 0; -} - -/*****************************************************************************/ -int server_fill_rect(struct xrdp_mod* mod, int x, int y, int cx, int cy, - int color) -{ - struct xrdp_wm* wm; - struct xrdp_painter* p; - - wm = (struct xrdp_wm*)mod->wm; - p = (struct xrdp_painter*)mod->painter; - p->fg_color = color; - xrdp_painter_fill_rect(p, wm->screen, x, y, cx, cy); - return 0; -} - -/*****************************************************************************/ -int server_screen_blt(struct xrdp_mod* mod, int x, int y, int cx, int cy, - int srcx, int srcy) -{ - struct xrdp_wm* wm; - - wm = (struct xrdp_wm*)mod->wm; - xrdp_orders_init(wm->orders); - xrdp_orders_screen_blt(wm->orders, x, y, cx, cy, srcx, srcy, 0xcc, 0); - xrdp_orders_send(wm->orders); - return 0; -} - -/*****************************************************************************/ -int server_paint_rect(struct xrdp_mod* mod, int x, int y, int cx, int cy, - char* data) -{ - struct xrdp_wm* wm; - struct xrdp_bitmap* b; - - wm = (struct xrdp_wm*)mod->wm; - b = xrdp_bitmap_create_with_data(cx, cy, wm->screen->bpp, data, wm); - //xrdp_wm_send_bitmap(wm, b, x, y, cx, cy); - xrdp_painter_draw_bitmap((struct xrdp_painter*)mod->painter, - wm->screen, b, x, y, cx, cy); - xrdp_bitmap_delete(b); - return 0; -} - -/*****************************************************************************/ -int server_set_cursor(struct xrdp_mod* mod, int x, int y, - char* data, char* mask) -{ - struct xrdp_wm* wm; - - wm = (struct xrdp_wm*)mod->wm; - xrdp_wm_send_cursor(wm, 2, data, mask, x, y); - return 0; -} - -/*****************************************************************************/ -int server_palette(struct xrdp_mod* mod, int* palette) -{ - struct xrdp_wm* wm; - - wm = (struct xrdp_wm*)mod->wm; - if (g_memcmp(wm->palette, palette, 255 * sizeof(int)) != 0) - { - g_memcpy(wm->palette, palette, 256 * sizeof(int)); - xrdp_wm_send_palette(wm); - } - return 0; -} - -/*****************************************************************************/ int xrdp_wm_popup_notify(struct xrdp_bitmap* wnd, struct xrdp_bitmap* sender, int msg, int param1, int param2) @@ -173,43 +80,6 @@ int xrdp_wm_popup_notify(struct xrdp_bitmap* wnd, } /*****************************************************************************/ -int server_error_popup(struct xrdp_mod* mod, char* error, char* caption) -{ -#ifdef aa0 - struct xrdp_wm* wm; - struct xrdp_bitmap* wnd; - struct xrdp_bitmap* but; - - wm = (struct xrdp_wm*)mod->wm; - wnd = xrdp_bitmap_create(400, 200, wm->screen->bpp, WND_TYPE_WND, wm); - xrdp_list_add_item(wm->screen->child_list, (int)wnd); - wnd->parent = wm->screen; - wnd->owner = wm->screen; - wnd->bg_color = wm->grey; - wnd->left = wm->screen->width / 2 - wnd->width / 2; - wnd->top = wm->screen->height / 2 - wnd->height / 2; - wnd->notify = xrdp_wm_popup_notify; - g_strcpy(wnd->caption, caption); - - /* button */ - but = xrdp_bitmap_create(60, 25, wm->screen->bpp, WND_TYPE_BUTTON, wm); - xrdp_list_add_item(wnd->child_list, (int)but); - but->parent = wnd; - but->owner = wnd; - but->left = 180; - but->top = 160; - but->id = 1; - g_strcpy(but->caption, "OK"); - but->tab_stop = 1; - - xrdp_bitmap_invalidate(wm->screen, 0); - //xrdp_bitmap_invalidate(wnd, 0); - g_sleep(2000); -#endif - return 0; -} - -/*****************************************************************************/ int xrdp_wm_setup_mod(struct xrdp_wm* self, struct xrdp_mod_data* mod_data) { |