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

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

Added CVS tag to many files (comctl32 and headers) .

File size: 1.0 KB
Line 
1/* $Id: cache.c,v 1.3 1999-06-10 16:21:57 achimha Exp $ */
2/*
3 * Wine internally cached objects to speedup some things and prevent
4 * infinite duplication of trivial code and data.
5 *
6 * Copyright 1997 Bertho A. Stultiens
7 * Copyright 1999 Achim Hasenmueller
8 *
9 */
10
11#include "wingdi.h"
12#include "cache.h"
13
14static const WORD wPattern55AA[] =
15{
16 0x5555, 0xaaaa, 0x5555, 0xaaaa,
17 0x5555, 0xaaaa, 0x5555, 0xaaaa
18};
19
20static HBRUSH hPattern55AABrush = 0;
21static HBITMAP hPattern55AABitmap = 0;
22
23
24/*********************************************************************
25 * CACHE_GetPattern55AABrush
26 */
27HBRUSH CACHE_GetPattern55AABrush(void)
28{
29 if (!hPattern55AABrush)
30 hPattern55AABrush = CreatePatternBrush(CACHE_GetPattern55AABitmap());
31 return hPattern55AABrush;
32}
33
34
35/*********************************************************************
36 * CACHE_GetPattern55AABitmap
37 */
38HBITMAP CACHE_GetPattern55AABitmap(void)
39{
40 if (!hPattern55AABitmap)
41 hPattern55AABitmap = CreateBitmap( 8, 8, 1, 1, wPattern55AA );
42 return hPattern55AABitmap;
43}
Note: See TracBrowser for help on using the repository browser.