Wrong access on server handle was demanded (GENERIC_READ instead of
[wine/multimedia.git] / graphics / cache.c
blob5d0f1843874c8c4098c4e6a99a10d52143be0a62
1 /*
2 * Wine internally cached objects to speedup some things and prevent
3 * infinite duplication of trivial code and data.
4 *
5 * Copyright 1997 Bertho A. Stultiens
7 */
9 #include "windows.h"
10 #include "cache.h"
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;