forked from otya128/winevdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wing.c
404 lines (368 loc) · 16 KB
/
wing.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
/*
* WinG support
*
* Copyright (C) Robert Pouliot <krynos@clic.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "wownt32.h"
#include "wine/wingdi16.h"
#include "wine/list.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(wing);
struct dib_segptr_bits
{
struct list entry;
HBITMAP bmp;
WORD sel;
WORD count;
BOOL topdown;
};
static struct list dib_segptr_list = LIST_INIT( dib_segptr_list );
/* remove saved bits for bitmaps that no longer exist */
static void cleanup_segptr_bits(void)
{
unsigned int i;
struct dib_segptr_bits *bits, *next;
LIST_FOR_EACH_ENTRY_SAFE( bits, next, &dib_segptr_list, struct dib_segptr_bits, entry )
{
if (GetObjectType( bits->bmp ) == OBJ_BITMAP) continue;
for (i = 0; i < bits->count; i++) FreeSelector16( bits->sel + (i << __AHSHIFT) );
list_remove( &bits->entry );
HeapFree( GetProcessHeap(), 0, bits );
}
}
static SEGPTR alloc_segptr_bits( HBITMAP bmp, void *bits32, BOOL topdown )
{
DIBSECTION dib;
unsigned int i, size;
struct dib_segptr_bits *bits;
cleanup_segptr_bits();
if (!(bits = HeapAlloc( GetProcessHeap(), 0, sizeof(*bits) ))) return 0;
GetObjectW( bmp, sizeof(dib), &dib );
size = dib.dsBm.bmHeight * dib.dsBm.bmWidthBytes;
/* calculate number of sel's needed for size with 64K steps */
bits->bmp = bmp;
bits->count = (size + 0xffff) / 0x10000;
bits->sel = AllocSelectorArray16( bits->count );
bits->topdown = topdown;
for (i = 0; i < bits->count; i++)
{
SetSelectorBase(bits->sel + (i << __AHSHIFT), (DWORD)bits32 + i * 0x10000);
SetSelectorLimit16(bits->sel + (i << __AHSHIFT), size - 1); /* yep, limit is correct */
size -= 0x10000;
}
list_add_head( &dib_segptr_list, &bits->entry );
return MAKESEGPTR( bits->sel, 0 );
}
/*************************************************************************
* WING {WING}
*
* The Windows Game dll provides a number of functions designed to allow
* programmers to bypass Gdi and write directly to video memory. The intention
* was to bolster the use of Windows as a gaming platform and remove the
* need for Dos based games using 32 bit Dos extenders.
*
* This initial approach could not compete with the performance of Dos games
* (such as Doom and Warcraft) at the time, and so this dll was eventually
* superseded by DirectX. It should not be used by new applications, and is
* provided only for compatibility with older Windows programs.
*/
typedef enum WING_DITHER_TYPE
{
WING_DISPERSED_4x4, WING_DISPERSED_8x8, WING_CLUSTERED_4x4
} WING_DITHER_TYPE;
/***********************************************************************
* WinGCreateDC (WING.1001)
*
* Create a new WinG device context.
*
* PARAMS
* None.
*
* RETURNS
* Success: A handle to the created device context.
* Failure: A NULL handle.
*/
HDC16 WINAPI WinGCreateDC16(void)
{
TRACE("(void)\n");
return HDC_16( CreateCompatibleDC( 0 ));
}
/***********************************************************************
* WinGRecommendDIBFormat (WING.1002)
*
* Get the recommended format of bitmaps for the current display.
*
* PARAMS
* bmpi [O] Destination for format information
*
* RETURNS
* Success: TRUE. bmpi is filled with the best (fastest) bitmap format
* Failure: FALSE, if bmpi is NULL.
*/
BOOL16 WINAPI WinGRecommendDIBFormat16(BITMAPINFO *bmpi)
{
TRACE("(%p)\n", bmpi);
if (!bmpi)
return FALSE;
bmpi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
bmpi->bmiHeader.biWidth = 1;
bmpi->bmiHeader.biHeight = 1;
bmpi->bmiHeader.biPlanes = 1;
bmpi->bmiHeader.biBitCount = 8;
bmpi->bmiHeader.biCompression = BI_RGB;
bmpi->bmiHeader.biSizeImage = 0;
bmpi->bmiHeader.biXPelsPerMeter = 0;
bmpi->bmiHeader.biYPelsPerMeter = 0;
bmpi->bmiHeader.biClrUsed = 0;
bmpi->bmiHeader.biClrImportant = 0;
return TRUE;
}
/***********************************************************************
* WinGCreateBitmap (WING.1003)
*
* Create a new WinG bitmap.
*
* PARAMS
* hdc [I] WinG device context
* bmpi [I] Information about the bitmap
* bits [I] Location of the bitmap image data
*
* RETURNS
* Success: A handle to the created bitmap.
* Failure: A NULL handle.
*/
HBITMAP16 WINAPI WinGCreateBitmap16(HDC16 hdc, BITMAPINFO *bmpi, SEGPTR *bits)
{
LPVOID bits32;
HBITMAP hbitmap;
LONG oldheight = bmpi->bmiHeader.biHeight;
DWORD oldsize = bmpi->bmiHeader.biSizeImage;
bmpi->bmiHeader.biSizeImage = 0;
if (oldheight >= 32768)
bmpi->bmiHeader.biHeight = (INT16)(oldheight & 0xffff);
TRACE("(%d,%p,%p): create %dx%dx%d bitmap\n", hdc, bmpi, bits,
bmpi->bmiHeader.biWidth, bmpi->bmiHeader.biHeight, bmpi->bmiHeader.biPlanes);
hbitmap = CreateDIBSection( HDC_32(hdc), bmpi, DIB_RGB_COLORS, &bits32, 0, 0 );
if (hbitmap)
{
SEGPTR segptr = alloc_segptr_bits( hbitmap, bits32, (bmpi->bmiHeader.biHeight < 0) );
if (bits) *bits = segptr;
}
bmpi->bmiHeader.biHeight = oldheight;
bmpi->bmiHeader.biSizeImage = oldsize;
return HBITMAP_16(hbitmap);
}
/***********************************************************************
* WinGGetDIBPointer (WING.1004)
*/
SEGPTR WINAPI WinGGetDIBPointer16(HBITMAP16 hWinGBitmap, BITMAPINFO* bmpi)
{
struct dib_segptr_bits *bits;
LIST_FOR_EACH_ENTRY( bits, &dib_segptr_list, struct dib_segptr_bits, entry )
if (HBITMAP_16(bits->bmp) == hWinGBitmap)
{
DIBSECTION dib;
if (bmpi && (GetObjectA(bits->bmp, sizeof(DIBSECTION), &dib) == sizeof(DIBSECTION)))
{
memcpy(bmpi, &(dib.dsBmih), sizeof(BITMAPINFOHEADER));
if (bits->topdown) bmpi->bmiHeader.biHeight = -bmpi->bmiHeader.biHeight;
}
return MAKESEGPTR( bits->sel, 0 );
}
return 0;
}
/***********************************************************************
* WinGSetDIBColorTable (WING.1006)
*
* Set all or part of the color table for a WinG device context.
*
* PARAMS
* hdc [I] WinG device context
* start [I] Start color
* num [I] Number of entries to set
* colors [I] Array of color data
*
* RETURNS
* The number of entries set.
*/
UINT16 WINAPI WinGSetDIBColorTable16(HDC16 hdc, UINT16 start, UINT16 num, RGBQUAD *colors)
{
TRACE("(%d,%d,%d,%p)\n", hdc, start, num, colors);
return SetDIBColorTable( HDC_32(hdc), start, num, colors );
}
/***********************************************************************
* WinGGetDIBColorTable (WING.1005)
*
* Get all or part of the color table for a WinG device context.
*
* PARAMS
* hdc [I] WinG device context
* start [I] Start color
* num [I] Number of entries to set
* colors [O] Destination for the array of color data
*
* RETURNS
* The number of entries retrieved.
*/
UINT16 WINAPI WinGGetDIBColorTable16(HDC16 hdc, UINT16 start, UINT16 num, RGBQUAD *colors)
{
TRACE("(%d,%d,%d,%p)\n", hdc, start, num, colors);
return GetDIBColorTable( HDC_32(hdc), start, num, colors );
}
typedef struct {
WORD palVersion;
WORD palNumEntries;
PALETTEENTRY palPalEntry[256];
} logpalette_8bpp;
static const logpalette_8bpp wing_halftone_pal = {0x300, 0x100,
{{0x00,0x00,0x00,0x04}, {0x80,0x00,0x00,0x04}, {0x00,0x80,0x00,0x04}, {0x80,0x80,0x00,0x04},
{0x00,0x00,0x80,0x04}, {0x80,0x00,0x80,0x04}, {0x00,0x80,0x80,0x04}, {0xC0,0xC0,0xC0,0x04},
{0xC0,0xDC,0xC0,0x04}, {0xA6,0xCA,0xF0,0x04}, {0x04,0x04,0x04,0x04}, {0x08,0x08,0x08,0x04},
{0x0C,0x0C,0x0C,0x04}, {0x11,0x11,0x11,0x04}, {0x16,0x16,0x16,0x04}, {0x1C,0x1C,0x1C,0x04},
{0x22,0x22,0x22,0x04}, {0x29,0x29,0x29,0x04}, {0x55,0x55,0x55,0x04}, {0x4D,0x4D,0x4D,0x04},
{0x42,0x42,0x42,0x04}, {0x39,0x39,0x39,0x04}, {0x81,0x81,0x81,0x04}, {0x81,0x00,0x00,0x04},
{0x00,0x81,0x00,0x04}, {0x81,0x81,0x00,0x04}, {0x00,0x00,0x81,0x04}, {0x81,0x00,0x81,0x04},
{0x00,0x81,0x81,0x04}, {0x33,0x00,0x00,0x04}, {0x66,0x00,0x00,0x04}, {0x99,0x00,0x00,0x04},
{0xCC,0x00,0x00,0x04}, {0x00,0x33,0x00,0x04}, {0x33,0x33,0x00,0x04}, {0x66,0x33,0x00,0x04},
{0x99,0x33,0x00,0x04}, {0xCC,0x33,0x00,0x04}, {0xFF,0x33,0x00,0x04}, {0x00,0x66,0x00,0x04},
{0x33,0x66,0x00,0x04}, {0x66,0x66,0x00,0x04}, {0x99,0x66,0x00,0x04}, {0xCC,0x66,0x00,0x04},
{0xFF,0x66,0x00,0x04}, {0x00,0x99,0x00,0x04}, {0x33,0x99,0x00,0x04}, {0x66,0x99,0x00,0x04},
{0x99,0x99,0x00,0x04}, {0xCC,0x99,0x00,0x04}, {0xFF,0x99,0x00,0x04}, {0x00,0xCC,0x00,0x04},
{0x33,0xCC,0x00,0x04}, {0x66,0xCC,0x00,0x04}, {0x99,0xCC,0x00,0x04}, {0xCC,0xCC,0x00,0x04},
{0xFF,0xCC,0x00,0x04}, {0x66,0xFF,0x00,0x04}, {0x99,0xFF,0x00,0x04}, {0xCC,0xFF,0x00,0x04},
{0x00,0x00,0x33,0x04}, {0x33,0x00,0x33,0x04}, {0x66,0x00,0x33,0x04}, {0x99,0x00,0x33,0x04},
{0xCC,0x00,0x33,0x04}, {0xFF,0x00,0x33,0x04}, {0x00,0x33,0x33,0x04}, {0x33,0x33,0x33,0x04},
{0x66,0x33,0x33,0x04}, {0x99,0x33,0x33,0x04}, {0xCC,0x33,0x33,0x04}, {0xFF,0x33,0x33,0x04},
{0x00,0x66,0x33,0x04}, {0x33,0x66,0x33,0x04}, {0x66,0x66,0x33,0x04}, {0x99,0x66,0x33,0x04},
{0xCC,0x66,0x33,0x04}, {0xFF,0x66,0x33,0x04}, {0x00,0x99,0x33,0x04}, {0x33,0x99,0x33,0x04},
{0x66,0x99,0x33,0x04}, {0x99,0x99,0x33,0x04}, {0xCC,0x99,0x33,0x04}, {0xFF,0x99,0x33,0x04},
{0x00,0xCC,0x33,0x04}, {0x33,0xCC,0x33,0x04}, {0x66,0xCC,0x33,0x04}, {0x99,0xCC,0x33,0x04},
{0xCC,0xCC,0x33,0x04}, {0xFF,0xCC,0x33,0x04}, {0x33,0xFF,0x33,0x04}, {0x66,0xFF,0x33,0x04},
{0x99,0xFF,0x33,0x04}, {0xCC,0xFF,0x33,0x04}, {0xFF,0xFF,0x33,0x04}, {0x00,0x00,0x66,0x04},
{0x33,0x00,0x66,0x04}, {0x66,0x00,0x66,0x04}, {0x99,0x00,0x66,0x04}, {0xCC,0x00,0x66,0x04},
{0xFF,0x00,0x66,0x04}, {0x00,0x33,0x66,0x04}, {0x33,0x33,0x66,0x04}, {0x66,0x33,0x66,0x04},
{0x99,0x33,0x66,0x04}, {0xCC,0x33,0x66,0x04}, {0xFF,0x33,0x66,0x04}, {0x00,0x66,0x66,0x04},
{0x33,0x66,0x66,0x04}, {0x66,0x66,0x66,0x04}, {0x99,0x66,0x66,0x04}, {0xCC,0x66,0x66,0x04},
{0x00,0x99,0x66,0x04}, {0x33,0x99,0x66,0x04}, {0x66,0x99,0x66,0x04}, {0x99,0x99,0x66,0x04},
{0xCC,0x99,0x66,0x04}, {0xFF,0x99,0x66,0x04}, {0x00,0xCC,0x66,0x04}, {0x33,0xCC,0x66,0x04},
{0x99,0xCC,0x66,0x04}, {0xCC,0xCC,0x66,0x04}, {0xFF,0xCC,0x66,0x04}, {0x00,0xFF,0x66,0x04},
{0x33,0xFF,0x66,0x04}, {0x99,0xFF,0x66,0x04}, {0xCC,0xFF,0x66,0x04}, {0xFF,0x00,0xCC,0x04},
{0xCC,0x00,0xFF,0x04}, {0x00,0x99,0x99,0x04}, {0x99,0x33,0x99,0x04}, {0x99,0x00,0x99,0x04},
{0xCC,0x00,0x99,0x04}, {0x00,0x00,0x99,0x04}, {0x33,0x33,0x99,0x04}, {0x66,0x00,0x99,0x04},
{0xCC,0x33,0x99,0x04}, {0xFF,0x00,0x99,0x04}, {0x00,0x66,0x99,0x04}, {0x33,0x66,0x99,0x04},
{0x66,0x33,0x99,0x04}, {0x99,0x66,0x99,0x04}, {0xCC,0x66,0x99,0x04}, {0xFF,0x33,0x99,0x04},
{0x33,0x99,0x99,0x04}, {0x66,0x99,0x99,0x04}, {0x99,0x99,0x99,0x04}, {0xCC,0x99,0x99,0x04},
{0xFF,0x99,0x99,0x04}, {0x00,0xCC,0x99,0x04}, {0x33,0xCC,0x99,0x04}, {0x66,0xCC,0x66,0x04},
{0x99,0xCC,0x99,0x04}, {0xCC,0xCC,0x99,0x04}, {0xFF,0xCC,0x99,0x04}, {0x00,0xFF,0x99,0x04},
{0x33,0xFF,0x99,0x04}, {0x66,0xCC,0x99,0x04}, {0x99,0xFF,0x99,0x04}, {0xCC,0xFF,0x99,0x04},
{0xFF,0xFF,0x99,0x04}, {0x00,0x00,0xCC,0x04}, {0x33,0x00,0x99,0x04}, {0x66,0x00,0xCC,0x04},
{0x99,0x00,0xCC,0x04}, {0xCC,0x00,0xCC,0x04}, {0x00,0x33,0x99,0x04}, {0x33,0x33,0xCC,0x04},
{0x66,0x33,0xCC,0x04}, {0x99,0x33,0xCC,0x04}, {0xCC,0x33,0xCC,0x04}, {0xFF,0x33,0xCC,0x04},
{0x00,0x66,0xCC,0x04}, {0x33,0x66,0xCC,0x04}, {0x66,0x66,0x99,0x04}, {0x99,0x66,0xCC,0x04},
{0xCC,0x66,0xCC,0x04}, {0xFF,0x66,0x99,0x04}, {0x00,0x99,0xCC,0x04}, {0x33,0x99,0xCC,0x04},
{0x66,0x99,0xCC,0x04}, {0x99,0x99,0xCC,0x04}, {0xCC,0x99,0xCC,0x04}, {0xFF,0x99,0xCC,0x04},
{0x00,0xCC,0xCC,0x04}, {0x33,0xCC,0xCC,0x04}, {0x66,0xCC,0xCC,0x04}, {0x99,0xCC,0xCC,0x04},
{0xCC,0xCC,0xCC,0x04}, {0xFF,0xCC,0xCC,0x04}, {0x00,0xFF,0xCC,0x04}, {0x33,0xFF,0xCC,0x04},
{0x66,0xFF,0x99,0x04}, {0x99,0xFF,0xCC,0x04}, {0xCC,0xFF,0xCC,0x04}, {0xFF,0xFF,0xCC,0x04},
{0x33,0x00,0xCC,0x04}, {0x66,0x00,0xFF,0x04}, {0x99,0x00,0xFF,0x04}, {0x00,0x33,0xCC,0x04},
{0x33,0x33,0xFF,0x04}, {0x66,0x33,0xFF,0x04}, {0x99,0x33,0xFF,0x04}, {0xCC,0x33,0xFF,0x04},
{0xFF,0x33,0xFF,0x04}, {0x00,0x66,0xFF,0x04}, {0x33,0x66,0xFF,0x04}, {0x66,0x66,0xCC,0x04},
{0x99,0x66,0xFF,0x04}, {0xCC,0x66,0xFF,0x04}, {0xFF,0x66,0xCC,0x04}, {0x00,0x99,0xFF,0x04},
{0x33,0x99,0xFF,0x04}, {0x66,0x99,0xFF,0x04}, {0x99,0x99,0xFF,0x04}, {0xCC,0x99,0xFF,0x04},
{0xFF,0x99,0xFF,0x04}, {0x00,0xCC,0xFF,0x04}, {0x33,0xCC,0xFF,0x04}, {0x66,0xCC,0xFF,0x04},
{0x99,0xCC,0xFF,0x04}, {0xCC,0xCC,0xFF,0x04}, {0xFF,0xCC,0xFF,0x04}, {0x33,0xFF,0xFF,0x04},
{0x66,0xFF,0xCC,0x04}, {0x99,0xFF,0xFF,0x04}, {0xCC,0xFF,0xFF,0x04}, {0xFF,0x66,0x66,0x04},
{0x66,0xFF,0x66,0x04}, {0xFF,0xFF,0x66,0x04}, {0x66,0x66,0xFF,0x04}, {0xFF,0x66,0xFF,0x04},
{0x66,0xFF,0xFF,0x04}, {0xC1,0xC1,0xC1,0x04}, {0x5F,0x5F,0x5F,0x04}, {0x77,0x77,0x77,0x04},
{0x86,0x86,0x86,0x04}, {0x96,0x96,0x96,0x04}, {0xCB,0xCB,0xCB,0x04}, {0xB2,0xB2,0xB2,0x04},
{0xD7,0xD7,0xD7,0x04}, {0xDD,0xDD,0xDD,0x04}, {0xE3,0xE3,0xE3,0x04}, {0xEA,0xEA,0xEA,0x04},
{0xF1,0xF1,0xF1,0x04}, {0xF8,0xF8,0xF8,0x04}, {0xFF,0xFB,0xF0,0x04}, {0xA0,0xA0,0xA4,0x04},
{0x80,0x80,0x80,0x04}, {0xFF,0x00,0x00,0x04}, {0x00,0xFF,0x00,0x04}, {0xFF,0xFF,0x00,0x04},
{0x00,0x00,0xFF,0x04}, {0xFF,0x00,0xFF,0x04}, {0x00,0xFF,0xFF,0x04}, {0xFF,0xFF,0xFF,0x04}}};
/***********************************************************************
* WinGCreateHalfTonePalette (WING.1007)
*
* Create a half tone palette.
*
* PARAMS
* None.
*
* RETURNS
* Success: A handle to the created palette.
* Failure: A NULL handle.
*/
HPALETTE16 WINAPI WinGCreateHalfTonePalette16(void)
{
HPALETTE16 ret = HPALETTE_16( CreatePalette( (const LOGPALETTE *)&wing_halftone_pal ));
TRACE("(void)\n");
return ret;
}
/***********************************************************************
* WinGCreateHalfToneBrush (WING.1008)
*
* Create a half tone brush for a WinG device context.
*
* PARAMS
* winDC [I] WinG device context
* col [I] Color
* type [I] Desired dithering type.
*
* RETURNS
* Success: A handle to the created brush.
* Failure: A NULL handle.
*/
HBRUSH16 WINAPI WinGCreateHalfToneBrush16(HDC16 winDC, COLORREF col,
WING_DITHER_TYPE type)
{
TRACE("(%d,%d,%d)\n", winDC, col, type);
return HBRUSH_16( CreateSolidBrush( col ));
}
/***********************************************************************
* WinGStretchBlt (WING.1009)
*
* See StretchBlt16.
*/
BOOL16 WINAPI WinGStretchBlt16(HDC16 destDC, INT16 xDest, INT16 yDest,
INT16 widDest, INT16 heiDest,
HDC16 srcDC, INT16 xSrc, INT16 ySrc,
INT16 widSrc, INT16 heiSrc)
{
BOOL retval;
TRACE("(%d,%d,...)\n", destDC, srcDC);
SetStretchBltMode( HDC_32(destDC), COLORONCOLOR );
retval = StretchBlt( HDC_32(destDC), xDest, yDest, widDest, heiDest,
HDC_32(srcDC), xSrc, ySrc, widSrc, heiSrc, SRCCOPY );
SetStretchBltMode( HDC_32(destDC), BLACKONWHITE );
return retval;
}
/***********************************************************************
* WinGBitBlt (WING.1010)
*
* See BitBlt16.
*/
BOOL16 WINAPI WinGBitBlt16(HDC16 destDC, INT16 xDest, INT16 yDest,
INT16 widDest, INT16 heiDest, HDC16 srcDC,
INT16 xSrc, INT16 ySrc)
{
TRACE("(%d,%d,...)\n", destDC, srcDC);
return BitBlt( HDC_32(destDC), xDest, yDest, widDest, heiDest, HDC_32(srcDC), xSrc, ySrc, SRCCOPY );
}