source: trunk/src/comctl32/cache.c@ 60

Last change on this file since 60 was 60, checked in by achimha, 26 years ago

* empty log message *

File size: 1009 bytes
Line 
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 * Copyright 1999 Achim Hasenmueller
7 *
8 */
9
10#include "wingdi.h"
11#include "cache.h"
12
13static const WORD wPattern55AA[] =
14{
15 0x5555, 0xaaaa, 0x5555, 0xaaaa,
16 0x5555, 0xaaaa, 0x5555, 0xaaaa
17};
18
19static HBRUSH hPattern55AABrush = 0;
20static HBITMAP hPattern55AABitmap = 0;
21
22
23/*********************************************************************
24 * CACHE_GetPattern55AABrush
25 */
26HBRUSH CACHE_GetPattern55AABrush(void)
27{
28 if (!hPattern55AABrush)
29 hPattern55AABrush = CreatePatternBrush(CACHE_GetPattern55AABitmap());
30 return hPattern55AABrush;
31}
32
33
34/*********************************************************************
35 * CACHE_GetPattern55AABitmap
36 */
37HBITMAP CACHE_GetPattern55AABitmap(void)
38{
39 if (!hPattern55AABitmap)
40 hPattern55AABitmap = CreateBitmap( 8, 8, 1, 1, wPattern55AA );
41 return hPattern55AABitmap;
42}
Note: See TracBrowser for help on using the repository browser.