2 * DIB driver initialization and DC functions.
4 * Copyright 2011 Huw Davies
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #include "gdi_private.h"
26 #include "wine/exception.h"
27 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(dib
);
31 static const DWORD bit_fields_888
[3] = {0xff0000, 0x00ff00, 0x0000ff};
32 static const DWORD bit_fields_555
[3] = {0x7c00, 0x03e0, 0x001f};
34 static void calc_shift_and_len(DWORD mask
, int *shift
, int *len
)
45 while ((mask
& 1) == 0)
51 while ((mask
& 1) == 1)
60 static void init_bit_fields(dib_info
*dib
, const DWORD
*bit_fields
)
62 dib
->red_mask
= bit_fields
[0];
63 dib
->green_mask
= bit_fields
[1];
64 dib
->blue_mask
= bit_fields
[2];
65 calc_shift_and_len(dib
->red_mask
, &dib
->red_shift
, &dib
->red_len
);
66 calc_shift_and_len(dib
->green_mask
, &dib
->green_shift
, &dib
->green_len
);
67 calc_shift_and_len(dib
->blue_mask
, &dib
->blue_shift
, &dib
->blue_len
);
70 static BOOL
init_dib_info(dib_info
*dib
, const BITMAPINFOHEADER
*bi
, const DWORD
*bit_fields
,
71 RGBQUAD
*color_table
, int color_table_size
, void *bits
, enum dib_info_flags flags
)
73 dib
->bit_count
= bi
->biBitCount
;
74 dib
->width
= bi
->biWidth
;
75 dib
->height
= bi
->biHeight
;
76 dib
->compression
= bi
->biCompression
;
77 dib
->stride
= get_dib_stride( dib
->width
, dib
->bit_count
);
79 dib
->bits
.is_copy
= FALSE
;
80 dib
->bits
.free
= NULL
;
81 dib
->bits
.param
= NULL
;
84 if(dib
->height
< 0) /* top-down */
86 dib
->height
= -dib
->height
;
90 /* bits always points to the top-left corner and the stride is -ve */
91 dib
->bits
.ptr
= (BYTE
*)dib
->bits
.ptr
+ (dib
->height
- 1) * dib
->stride
;
92 dib
->stride
= -dib
->stride
;
95 dib
->funcs
= &funcs_null
;
97 switch(dib
->bit_count
)
100 if(bi
->biCompression
== BI_RGB
)
101 bit_fields
= bit_fields_888
;
103 init_bit_fields(dib
, bit_fields
);
105 if(dib
->red_mask
== 0xff0000 && dib
->green_mask
== 0x00ff00 && dib
->blue_mask
== 0x0000ff)
106 dib
->funcs
= &funcs_8888
;
108 dib
->funcs
= &funcs_32
;
112 dib
->funcs
= &funcs_24
;
116 if(bi
->biCompression
== BI_RGB
)
117 bit_fields
= bit_fields_555
;
119 init_bit_fields(dib
, bit_fields
);
121 if(dib
->red_mask
== 0x7c00 && dib
->green_mask
== 0x03e0 && dib
->blue_mask
== 0x001f)
122 dib
->funcs
= &funcs_555
;
124 dib
->funcs
= &funcs_16
;
128 dib
->funcs
= &funcs_8
;
132 dib
->funcs
= &funcs_4
;
136 dib
->funcs
= &funcs_1
;
140 TRACE("bpp %d not supported, will forward to graphics driver.\n", dib
->bit_count
);
146 if (flags
& private_color_table
)
148 dib
->color_table
= HeapAlloc(GetProcessHeap(), 0, color_table_size
* sizeof(dib
->color_table
[0]));
149 if(!dib
->color_table
) return FALSE
;
150 memcpy(dib
->color_table
, color_table
, color_table_size
* sizeof(color_table
[0]));
153 dib
->color_table
= color_table
;
154 dib
->color_table_size
= color_table_size
;
158 dib
->color_table
= NULL
;
159 dib
->color_table_size
= 0;
165 BOOL
init_dib_info_from_brush(dib_info
*dib
, const BITMAPINFO
*bi
, void *bits
, UINT usage
, HDC hdc
)
167 int num_colors
= get_dib_num_of_colors( bi
);
169 if (num_colors
&& usage
== DIB_PAL_COLORS
)
171 char buffer
[FIELD_OFFSET( BITMAPINFO
, bmiColors
[256] )];
172 BITMAPINFO
*info
= (BITMAPINFO
*)buffer
;
174 copy_bitmapinfo( info
, bi
);
175 fill_color_table_from_pal_colors( info
, hdc
);
176 return init_dib_info_from_bitmapinfo( dib
, info
, bits
, private_color_table
);
178 return init_dib_info_from_bitmapinfo(dib
, bi
, bits
, private_color_table
);
181 BOOL
init_dib_info_from_bitmapinfo(dib_info
*dib
, const BITMAPINFO
*info
, void *bits
, enum dib_info_flags flags
)
183 unsigned int colors
= get_dib_num_of_colors( info
);
184 void *colorptr
= (char *)&info
->bmiHeader
+ info
->bmiHeader
.biSize
;
185 const DWORD
*bitfields
= (info
->bmiHeader
.biCompression
== BI_BITFIELDS
) ? (DWORD
*)colorptr
: NULL
;
187 return init_dib_info( dib
, &info
->bmiHeader
, bitfields
, colors
? colorptr
: NULL
, colors
, bits
, flags
);
190 BOOL
init_dib_info_from_bitmapobj(dib_info
*dib
, BITMAPOBJ
*bmp
, enum dib_info_flags flags
)
194 char buffer
[FIELD_OFFSET( BITMAPINFO
, bmiColors
[256] )];
195 BITMAPINFO
*info
= (BITMAPINFO
*)buffer
;
197 get_ddb_bitmapinfo( bmp
, info
);
198 if (!bmp
->bitmap
.bmBits
)
200 int width_bytes
= get_dib_stride( bmp
->bitmap
.bmWidth
, bmp
->bitmap
.bmBitsPixel
);
201 bmp
->bitmap
.bmBits
= HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY
,
202 bmp
->bitmap
.bmHeight
* width_bytes
);
203 if (!bmp
->bitmap
.bmBits
) return FALSE
;
205 return init_dib_info_from_bitmapinfo( dib
, info
, bmp
->bitmap
.bmBits
,
206 flags
| private_color_table
);
208 return init_dib_info( dib
, &bmp
->dib
->dsBmih
, bmp
->dib
->dsBitfields
,
209 bmp
->color_table
, bmp
->dib
->dsBmih
.biClrUsed
, bmp
->dib
->dsBm
.bmBits
, flags
);
212 static void clear_dib_info(dib_info
*dib
)
214 dib
->color_table
= NULL
;
215 dib
->bits
.ptr
= NULL
;
216 dib
->bits
.free
= NULL
;
217 dib
->bits
.param
= NULL
;
220 /**********************************************************************
223 * Free the resources associated with a dib and optionally the bits
225 void free_dib_info(dib_info
*dib
)
227 if (dib
->flags
& private_color_table
)
228 HeapFree(GetProcessHeap(), 0, dib
->color_table
);
230 if (dib
->bits
.free
) dib
->bits
.free( &dib
->bits
);
231 clear_dib_info( dib
);
234 void copy_dib_color_info(dib_info
*dst
, const dib_info
*src
)
236 dst
->bit_count
= src
->bit_count
;
237 dst
->red_mask
= src
->red_mask
;
238 dst
->green_mask
= src
->green_mask
;
239 dst
->blue_mask
= src
->blue_mask
;
240 dst
->red_len
= src
->red_len
;
241 dst
->green_len
= src
->green_len
;
242 dst
->blue_len
= src
->blue_len
;
243 dst
->red_shift
= src
->red_shift
;
244 dst
->green_shift
= src
->green_shift
;
245 dst
->blue_shift
= src
->blue_shift
;
246 dst
->funcs
= src
->funcs
;
247 dst
->color_table_size
= src
->color_table_size
;
248 dst
->color_table
= NULL
;
249 dst
->flags
= src
->flags
;
250 if(dst
->color_table_size
)
252 int size
= dst
->color_table_size
* sizeof(dst
->color_table
[0]);
253 if (dst
->flags
& private_color_table
)
255 dst
->color_table
= HeapAlloc(GetProcessHeap(), 0, size
);
256 memcpy(dst
->color_table
, src
->color_table
, size
);
259 dst
->color_table
= src
->color_table
;
263 DWORD
convert_bitmapinfo( const BITMAPINFO
*src_info
, void *src_bits
, struct bitblt_coords
*src
,
264 const BITMAPINFO
*dst_info
, void *dst_bits
, BOOL add_alpha
)
266 dib_info src_dib
, dst_dib
;
269 if ( !init_dib_info_from_bitmapinfo( &src_dib
, src_info
, src_bits
, 0 ) )
270 return ERROR_BAD_FORMAT
;
271 if ( !init_dib_info_from_bitmapinfo( &dst_dib
, dst_info
, dst_bits
, 0 ) )
272 return ERROR_BAD_FORMAT
;
276 dst_dib
.funcs
->convert_to( &dst_dib
, &src_dib
, &src
->visrect
);
281 WARN( "invalid bits pointer %p\n", src_bits
);
286 /* We shared the color tables, so there's no need to free the dib_infos here */
287 if(!ret
) return ERROR_BAD_FORMAT
;
289 /* update coordinates, the destination rectangle is always stored at 0,0 */
290 src
->x
-= src
->visrect
.left
;
291 src
->y
-= src
->visrect
.top
;
292 offset_rect( &src
->visrect
, -src
->visrect
.left
, -src
->visrect
.top
);
294 if (add_alpha
&& dst_dib
.funcs
== &funcs_8888
&& src_dib
.funcs
!= &funcs_8888
)
296 DWORD
*pixel
= dst_dib
.bits
.ptr
;
299 for (y
= src
->visrect
.top
; y
< src
->visrect
.bottom
; y
++, pixel
+= dst_dib
.stride
/ 4)
300 for (x
= src
->visrect
.left
; x
< src
->visrect
.right
; x
++)
301 pixel
[x
] |= 0xff000000;
304 return ERROR_SUCCESS
;
307 static void update_fg_colors( dibdrv_physdev
*pdev
)
309 pdev
->pen_color
= get_pixel_color( pdev
, pdev
->pen_colorref
, TRUE
);
310 pdev
->brush_color
= get_pixel_color( pdev
, pdev
->brush_colorref
, TRUE
);
311 pdev
->text_color
= get_pixel_color( pdev
, GetTextColor( pdev
->dev
.hdc
), TRUE
);
314 static void update_masks( dibdrv_physdev
*pdev
, INT rop
)
316 calc_and_xor_masks( rop
, pdev
->pen_color
, &pdev
->pen_and
, &pdev
->pen_xor
);
317 update_brush_rop( pdev
, rop
);
318 if( GetBkMode( pdev
->dev
.hdc
) == OPAQUE
)
319 calc_and_xor_masks( rop
, pdev
->bkgnd_color
, &pdev
->bkgnd_and
, &pdev
->bkgnd_xor
);
322 /***********************************************************************
323 * add_extra_clipping_region
325 * Temporarily add a region to the current clipping region.
326 * The returned region must be restored with restore_clipping_region.
328 HRGN
add_extra_clipping_region( dibdrv_physdev
*pdev
, HRGN rgn
)
332 if (!(clip
= CreateRectRgn( 0, 0, 0, 0 ))) return 0;
333 CombineRgn( clip
, pdev
->clip
, rgn
, RGN_AND
);
339 /***********************************************************************
340 * restore_clipping_region
342 void restore_clipping_region( dibdrv_physdev
*pdev
, HRGN rgn
)
345 DeleteObject( pdev
->clip
);
349 /**********************************************************************
352 static BOOL
dibdrv_CreateDC( PHYSDEV
*dev
, LPCWSTR driver
, LPCWSTR device
,
353 LPCWSTR output
, const DEVMODEW
*data
)
355 dibdrv_physdev
*pdev
= HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY
, sizeof(*pdev
) );
357 if (!pdev
) return FALSE
;
358 if (!(pdev
->clip
= CreateRectRgn(0, 0, 0, 0)))
360 HeapFree( GetProcessHeap(), 0, pdev
);
363 clear_dib_info(&pdev
->dib
);
364 clear_dib_info(&pdev
->brush_dib
);
365 push_dc_driver( dev
, &pdev
->dev
, &dib_driver
);
369 /***********************************************************************
372 static BOOL
dibdrv_DeleteDC( PHYSDEV dev
)
374 dibdrv_physdev
*pdev
= get_dibdrv_pdev(dev
);
375 TRACE("(%p)\n", dev
);
376 DeleteObject(pdev
->clip
);
377 free_pattern_brush(pdev
);
378 free_dib_info(&pdev
->dib
);
379 HeapFree( GetProcessHeap(), 0, pdev
);
383 /***********************************************************************
386 static BOOL
dibdrv_CopyBitmap( HBITMAP src
, HBITMAP dst
)
388 return nulldrv_CopyBitmap( src
, dst
);
391 /***********************************************************************
392 * dibdrv_DeleteBitmap
394 static BOOL
dibdrv_DeleteBitmap( HBITMAP bitmap
)
399 /***********************************************************************
400 * dibdrv_SelectBitmap
402 static HBITMAP
dibdrv_SelectBitmap( PHYSDEV dev
, HBITMAP bitmap
)
404 PHYSDEV next
= GET_NEXT_PHYSDEV( dev
, pSelectBitmap
);
405 dibdrv_physdev
*pdev
= get_dibdrv_pdev(dev
);
406 BITMAPOBJ
*bmp
= GDI_GetObjPtr( bitmap
, OBJ_BITMAP
);
407 TRACE("(%p, %p)\n", dev
, bitmap
);
411 free_dib_info(&pdev
->dib
);
413 if(!init_dib_info_from_bitmapobj(&pdev
->dib
, bmp
, 0))
414 pdev
->defer
|= DEFER_FORMAT
;
416 GDI_ReleaseObj( bitmap
);
418 return next
->funcs
->pSelectBitmap( next
, bitmap
);
421 /***********************************************************************
424 static COLORREF
dibdrv_SetBkColor( PHYSDEV dev
, COLORREF color
)
426 PHYSDEV next
= GET_NEXT_PHYSDEV( dev
, pSetBkColor
);
427 dibdrv_physdev
*pdev
= get_dibdrv_pdev(dev
);
429 pdev
->bkgnd_color
= get_pixel_color( pdev
, color
, FALSE
);
431 if( GetBkMode(dev
->hdc
) == OPAQUE
)
432 calc_and_xor_masks( GetROP2(dev
->hdc
), pdev
->bkgnd_color
, &pdev
->bkgnd_and
, &pdev
->bkgnd_xor
);
435 pdev
->bkgnd_and
= ~0u;
439 update_fg_colors( pdev
); /* Only needed in the 1 bpp case */
441 return next
->funcs
->pSetBkColor( next
, color
);
444 /***********************************************************************
447 static INT
dibdrv_SetBkMode( PHYSDEV dev
, INT mode
)
449 PHYSDEV next
= GET_NEXT_PHYSDEV( dev
, pSetBkMode
);
450 dibdrv_physdev
*pdev
= get_dibdrv_pdev(dev
);
453 calc_and_xor_masks( GetROP2(dev
->hdc
), pdev
->bkgnd_color
, &pdev
->bkgnd_and
, &pdev
->bkgnd_xor
);
456 pdev
->bkgnd_and
= ~0u;
460 return next
->funcs
->pSetBkMode( next
, mode
);
463 /***********************************************************************
464 * dibdrv_SetDeviceClipping
466 static void dibdrv_SetDeviceClipping( PHYSDEV dev
, HRGN rgn
)
468 PHYSDEV next
= GET_NEXT_PHYSDEV( dev
, pSetDeviceClipping
);
469 dibdrv_physdev
*pdev
= get_dibdrv_pdev(dev
);
470 TRACE("(%p, %p)\n", dev
, rgn
);
472 SetRectRgn( pdev
->clip
, 0, 0, pdev
->dib
.width
, pdev
->dib
.height
);
473 if (rgn
) CombineRgn( pdev
->clip
, pdev
->clip
, rgn
, RGN_AND
);
474 return next
->funcs
->pSetDeviceClipping( next
, rgn
);
477 /***********************************************************************
478 * dibdrv_SetDIBColorTable
480 static UINT
dibdrv_SetDIBColorTable( PHYSDEV dev
, UINT pos
, UINT count
, const RGBQUAD
*colors
)
482 PHYSDEV next
= GET_NEXT_PHYSDEV( dev
, pSetDIBColorTable
);
483 dibdrv_physdev
*pdev
= get_dibdrv_pdev(dev
);
484 TRACE("(%p, %d, %d, %p)\n", dev
, pos
, count
, colors
);
486 if (pdev
->dib
.color_table
)
488 pdev
->bkgnd_color
= get_pixel_color( pdev
, GetBkColor( dev
->hdc
), FALSE
);
489 update_fg_colors( pdev
);
491 update_masks( pdev
, GetROP2( dev
->hdc
) );
493 return next
->funcs
->pSetDIBColorTable( next
, pos
, count
, colors
);
496 /***********************************************************************
499 static INT
dibdrv_SetROP2( PHYSDEV dev
, INT rop
)
501 PHYSDEV next
= GET_NEXT_PHYSDEV( dev
, pSetROP2
);
502 dibdrv_physdev
*pdev
= get_dibdrv_pdev(dev
);
504 update_masks( pdev
, rop
);
506 return next
->funcs
->pSetROP2( next
, rop
);
509 /***********************************************************************
510 * dibdrv_SetTextColor
512 static COLORREF
dibdrv_SetTextColor( PHYSDEV dev
, COLORREF color
)
514 PHYSDEV next
= GET_NEXT_PHYSDEV( dev
, pSetTextColor
);
515 dibdrv_physdev
*pdev
= get_dibdrv_pdev(dev
);
517 pdev
->text_color
= get_pixel_color( pdev
, color
, TRUE
);
518 update_aa_ranges( pdev
);
520 return next
->funcs
->pSetTextColor( next
, color
);
523 const struct gdi_dc_funcs dib_driver
=
525 NULL
, /* pAbortDoc */
526 NULL
, /* pAbortPath */
527 dibdrv_AlphaBlend
, /* pAlphaBlend */
528 NULL
, /* pAngleArc */
531 NULL
, /* pBeginPath */
532 dibdrv_BlendImage
, /* pBlendImage */
533 NULL
, /* pChoosePixelFormat */
535 NULL
, /* pCloseFigure */
536 dibdrv_CopyBitmap
, /* pCopyBitmap */
537 NULL
, /* pCreateBitmap */
538 NULL
, /* pCreateCompatibleDC */
539 dibdrv_CreateDC
, /* pCreateDC */
540 NULL
, /* pCreateDIBSection */
541 dibdrv_DeleteBitmap
, /* pDeleteBitmap */
542 dibdrv_DeleteDC
, /* pDeleteDC */
543 NULL
, /* pDeleteObject */
544 NULL
, /* pDescribePixelFormat */
545 NULL
, /* pDeviceCapabilities */
550 NULL
, /* pEnumFonts */
551 NULL
, /* pEnumICMProfiles */
552 NULL
, /* pExcludeClipRect */
553 NULL
, /* pExtDeviceMode */
554 NULL
, /* pExtEscape */
555 NULL
, /* pExtFloodFill */
556 NULL
, /* pExtSelectClipRgn */
557 dibdrv_ExtTextOut
, /* pExtTextOut */
558 NULL
, /* pFillPath */
560 NULL
, /* pFlattenPath */
561 NULL
, /* pFontIsLinked */
562 NULL
, /* pFrameRgn */
563 NULL
, /* pGdiComment */
564 NULL
, /* pGdiRealizationInfo */
565 NULL
, /* pGetCharABCWidths */
566 NULL
, /* pGetCharABCWidthsI */
567 NULL
, /* pGetCharWidth */
568 NULL
, /* pGetDeviceCaps */
569 NULL
, /* pGetDeviceGammaRamp */
570 NULL
, /* pGetFontData */
571 NULL
, /* pGetFontUnicodeRanges */
572 NULL
, /* pGetGlyphIndices */
573 NULL
, /* pGetGlyphOutline */
574 NULL
, /* pGetICMProfile */
575 dibdrv_GetImage
, /* pGetImage */
576 NULL
, /* pGetKerningPairs */
577 NULL
, /* pGetNearestColor */
578 NULL
, /* pGetOutlineTextMetrics */
579 dibdrv_GetPixel
, /* pGetPixel */
580 NULL
, /* pGetPixelFormat */
581 NULL
, /* pGetSystemPaletteEntries */
582 NULL
, /* pGetTextCharsetInfo */
583 NULL
, /* pGetTextExtentExPoint */
584 NULL
, /* pGetTextExtentExPointI */
585 NULL
, /* pGetTextFace */
586 NULL
, /* pGetTextMetrics */
587 dibdrv_GradientFill
, /* pGradientFill */
588 NULL
, /* pIntersectClipRect */
589 NULL
, /* pInvertRgn */
590 dibdrv_LineTo
, /* pLineTo */
591 NULL
, /* pModifyWorldTransform */
593 NULL
, /* pOffsetClipRgn */
594 NULL
, /* pOffsetViewportOrg */
595 NULL
, /* pOffsetWindowOrg */
596 dibdrv_PaintRgn
, /* pPaintRgn */
597 dibdrv_PatBlt
, /* pPatBlt */
599 NULL
, /* pPolyBezier */
600 NULL
, /* pPolyBezierTo */
601 NULL
, /* pPolyDraw */
602 NULL
, /* pPolyPolygon */
603 dibdrv_PolyPolyline
, /* pPolyPolyline */
605 dibdrv_Polyline
, /* pPolyline */
606 NULL
, /* pPolylineTo */
607 dibdrv_PutImage
, /* pPutImage */
608 NULL
, /* pRealizeDefaultPalette */
609 NULL
, /* pRealizePalette */
610 dibdrv_Rectangle
, /* pRectangle */
612 NULL
, /* pRestoreDC */
613 NULL
, /* pRoundRect */
615 NULL
, /* pScaleViewportExt */
616 NULL
, /* pScaleWindowExt */
617 dibdrv_SelectBitmap
, /* pSelectBitmap */
618 dibdrv_SelectBrush
, /* pSelectBrush */
619 NULL
, /* pSelectClipPath */
620 NULL
, /* pSelectFont */
621 NULL
, /* pSelectPalette */
622 dibdrv_SelectPen
, /* pSelectPen */
623 NULL
, /* pSetArcDirection */
624 dibdrv_SetBkColor
, /* pSetBkColor */
625 dibdrv_SetBkMode
, /* pSetBkMode */
626 dibdrv_SetDCBrushColor
, /* pSetDCBrushColor */
627 dibdrv_SetDCPenColor
, /* pSetDCPenColor */
628 dibdrv_SetDIBColorTable
, /* pSetDIBColorTable */
629 NULL
, /* pSetDIBitsToDevice */
630 dibdrv_SetDeviceClipping
, /* pSetDeviceClipping */
631 NULL
, /* pSetDeviceGammaRamp */
632 NULL
, /* pSetLayout */
633 NULL
, /* pSetMapMode */
634 NULL
, /* pSetMapperFlags */
635 dibdrv_SetPixel
, /* pSetPixel */
636 NULL
, /* pSetPixelFormat */
637 NULL
, /* pSetPolyFillMode */
638 dibdrv_SetROP2
, /* pSetROP2 */
639 NULL
, /* pSetRelAbs */
640 NULL
, /* pSetStretchBltMode */
641 NULL
, /* pSetTextAlign */
642 NULL
, /* pSetTextCharacterExtra */
643 dibdrv_SetTextColor
, /* pSetTextColor */
644 NULL
, /* pSetTextJustification */
645 NULL
, /* pSetViewportExt */
646 NULL
, /* pSetViewportOrg */
647 NULL
, /* pSetWindowExt */
648 NULL
, /* pSetWindowOrg */
649 NULL
, /* pSetWorldTransform */
650 NULL
, /* pStartDoc */
651 NULL
, /* pStartPage */
652 dibdrv_StretchBlt
, /* pStretchBlt */
653 NULL
, /* pStretchDIBits */
654 NULL
, /* pStrokeAndFillPath */
655 NULL
, /* pStrokePath */
656 NULL
, /* pSwapBuffers */
657 NULL
, /* pUnrealizePalette */
658 NULL
, /* pWidenPath */
659 NULL
, /* pwglCopyContext */
660 NULL
, /* pwglCreateContext */
661 NULL
, /* pwglCreateContextAttribsARB */
662 NULL
, /* pwglDeleteContext */
663 NULL
, /* pwglGetPbufferDCARB */
664 NULL
, /* pwglGetProcAddress */
665 NULL
, /* pwglMakeContextCurrentARB */
666 NULL
, /* pwglMakeCurrent */
667 NULL
, /* pwglSetPixelFormatWINE */
668 NULL
, /* pwglShareLists */
669 NULL
, /* pwglUseFontBitmapsA */
670 NULL
/* pwglUseFontBitmapsW */