Moved ptrace support to ptrace.c. Tried to improve portability.
[wine.git] / graphics / cache.c
blobea603904a0c4a5c00650e6340a636acd6fb9e631
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 "wingdi.h"
10 #include "cache.h"
12 static const WORD wPattern55AA[] =
14 0x5555, 0xaaaa, 0x5555, 0xaaaa,
15 0x5555, 0xaaaa, 0x5555, 0xaaaa
18 static HBRUSH hPattern55AABrush = 0;
19 static HBITMAP hPattern55AABitmap = 0;
22 /*********************************************************************
23 * CACHE_GetPattern55AABrush
25 HBRUSH CACHE_GetPattern55AABrush(void)
27 if (!hPattern55AABrush)
28 hPattern55AABrush = CreatePatternBrush(CACHE_GetPattern55AABitmap());
29 return hPattern55AABrush;
33 /*********************************************************************
34 * CACHE_GetPattern55AABitmap
36 HBITMAP CACHE_GetPattern55AABitmap(void)
38 if (!hPattern55AABitmap)
39 hPattern55AABitmap = CreateBitmap( 8, 8, 1, 1, wPattern55AA );
40 return hPattern55AABitmap;