- Correct implementation of HUSKEY internals, including functions:
[wine] / dlls / user / cache.c
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
6  *
7  */
8
9 #include "windef.h"
10 #include "wingdi.h"
11 #include "user.h"
12
13 static const WORD wPattern55AA[] =
14
15     0x5555, 0xaaaa, 0x5555, 0xaaaa,
16     0x5555, 0xaaaa, 0x5555, 0xaaaa
17 };
18
19 static HBRUSH  hPattern55AABrush = 0;
20 static HBITMAP hPattern55AABitmap = 0;
21
22
23 /*********************************************************************
24  *      CACHE_GetPattern55AABrush
25  */
26 HBRUSH CACHE_GetPattern55AABrush(void)
27 {
28     if (!hPattern55AABrush)
29     {
30         hPattern55AABitmap = CreateBitmap( 8, 8, 1, 1, wPattern55AA );
31         hPattern55AABrush = CreatePatternBrush( hPattern55AABitmap );
32     }
33     return hPattern55AABrush;
34 }