Make sure the cmdline passed to CreateProcessA is writeable (thanks to
[wine/multimedia.git] / graphics / cache.c
blob54090b8941108db4542d60f7a18c82e9a7c00f57
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 "windef.h"
10 #include "wingdi.h"
11 #include "cache.h"
13 static const WORD wPattern55AA[] =
15 0x5555, 0xaaaa, 0x5555, 0xaaaa,
16 0x5555, 0xaaaa, 0x5555, 0xaaaa
19 static HBRUSH hPattern55AABrush = 0;
20 static HBITMAP hPattern55AABitmap = 0;
23 /*********************************************************************
24 * CACHE_GetPattern55AABrush
26 HBRUSH CACHE_GetPattern55AABrush(void)
28 if (!hPattern55AABrush)
29 hPattern55AABrush = CreatePatternBrush(CACHE_GetPattern55AABitmap());
30 return hPattern55AABrush;
34 /*********************************************************************
35 * CACHE_GetPattern55AABitmap
37 HBITMAP CACHE_GetPattern55AABitmap(void)
39 if (!hPattern55AABitmap)
40 hPattern55AABitmap = CreateBitmap( 8, 8, 1, 1, wPattern55AA );
41 return hPattern55AABitmap;