comparison src/video/win32/SDL_win32clipboard.c @ 4569:e1664f94f026

Andrey A. I made a video driver GAPI/RAW for WinCE (SDL-1.3). RAW mode has a priority, and also, GAPI mode works with environment "SDL_VIDEO_RENDERER=gapi" and for RAW mode "SDL_VIDEO_RENDERER=raw". I checked the work on the screens of VGA, WVGA, QVGA, WQVGA, HVGA, + tested all modes with WindowsMobile Emulator. Also, correctly draws the pointer position and the scale of the pointer for VGA/WVGA modes, correctly draws top left position for DM orientation screen, and portrait/landscape/square geometry the screen also correct. Also, I added a small fix for GDI fullscreen mode. Patch for latest revision SDL-1.3 in an attachment. Also added small path for mingw32ce build.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 27 Jul 2010 21:31:28 -0700
parents 9faebccfefb3
children
comparison
equal deleted inserted replaced
4568:25b9cd8bdc30 4569:e1664f94f026
93 EmptyClipboard(); 93 EmptyClipboard();
94 if (!SetClipboardData(TEXT_FORMAT, hMem)) { 94 if (!SetClipboardData(TEXT_FORMAT, hMem)) {
95 WIN_SetError("Couldn't set clipboard data"); 95 WIN_SetError("Couldn't set clipboard data");
96 result = -1; 96 result = -1;
97 } 97 }
98 #ifdef _WIN32_WCE
99 data->clipboard_count = 0;
100 #else
98 data->clipboard_count = GetClipboardSequenceNumber(); 101 data->clipboard_count = GetClipboardSequenceNumber();
102 #endif
99 } 103 }
100 SDL_free(tstr); 104 SDL_free(tstr);
101 105
102 CloseClipboard(); 106 CloseClipboard();
103 } else { 107 } else {
147 void 151 void
148 WIN_CheckClipboardUpdate(struct SDL_VideoData * data) 152 WIN_CheckClipboardUpdate(struct SDL_VideoData * data)
149 { 153 {
150 DWORD count; 154 DWORD count;
151 155
156 #ifdef _WIN32_WCE
157 count = 0;
158 #else
152 count = GetClipboardSequenceNumber(); 159 count = GetClipboardSequenceNumber();
160 #endif
153 if (count != data->clipboard_count) { 161 if (count != data->clipboard_count) {
154 if (data->clipboard_count) { 162 if (data->clipboard_count) {
155 SDL_SendClipboardUpdate(); 163 SDL_SendClipboardUpdate();
156 } 164 }
157 data->clipboard_count = count; 165 data->clipboard_count = count;