/* -*- c-basic-offset: 8 -*- FreeRDP: A Remote Desktop Protocol client. GDI Window Routines Copyright (C) Marc-Andre Moreau 2010 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef __GDI_WINDOW_H #define __GDI_WINDOW_H #include #include "libfreerdpgdi.h" struct _gdi_bitmap { HDC hdc; HBITMAP bitmap; HBITMAP org_bitmap; }; typedef struct _gdi_bitmap gdi_bitmap; struct _GDI { int width; int height; int dstBpp; int srcBpp; int cursor_x; int cursor_y; HDC hdc; gdi_bitmap *primary; gdi_bitmap *drawing; char* primary_buffer; COLORREF textColor; HPALETTE palette; PIXEL pixel; }; typedef struct _GDI GDI; unsigned int gdi_rop3_code(unsigned char code); void gdi_copy_mem(char *d, char *s, int n); void gdi_copy_memb(char *d, char *s, int n); char* gdi_get_bitmap_pointer(HDC hdcBmp, int x, int y); char* gdi_get_brush_pointer(HDC hdcBrush, int x, int y); int gdi_is_mono_pixel_set(char* data, int x, int y, int width); int gdi_init(rdpInst * inst); #endif /* __GDI_WINDOW_H */