2 * Wine internally cached objects to speedup some things and prevent
3 * infinite duplication of trivial code and data.
5 * Copyright 1997 Bertho A. Stultiens
12 static const WORD wPattern55AA[] =
14 0x5555, 0xaaaa, 0x5555, 0xaaaa,
15 0x5555, 0xaaaa, 0x5555, 0xaaaa
18 static HBRUSH32 hPattern55AABrush = 0;
19 static HBITMAP32 hPattern55AABitmap = 0;
22 /*********************************************************************
23 * CACHE_GetPattern55AABrush
25 HBRUSH32 CACHE_GetPattern55AABrush(void)
27 if (!hPattern55AABrush)
28 hPattern55AABrush = CreatePatternBrush32(CACHE_GetPattern55AABitmap());
29 return hPattern55AABrush;
33 /*********************************************************************
34 * CACHE_GetPattern55AABitmap
36 HBITMAP32 CACHE_GetPattern55AABitmap(void)
38 if (!hPattern55AABitmap)
39 hPattern55AABitmap = CreateBitmap32( 8, 8, 1, 1, wPattern55AA );
40 return hPattern55AABitmap;