Annotation of ntddk/src/video/displays/vga/brush.h, revision 1.1.1.1

1.1       root        1: /******************************Module*Header*******************************\
                      2: * Module Name: brush.h
                      3: *
                      4: * Contains the brush realization and dithering definitions.
                      5: *
                      6: * Copyright (c) 1992 Microsoft Corporation
                      7: \**************************************************************************/
                      8: 
                      9: typedef struct  _BRUSHINST
                     10: {
                     11:     // We need to removed ajC0-3 when color pattern code is complete!!!
                     12:     //
                     13:     BYTE    ajC0[8];                    // Color bits for plane 0
                     14:     BYTE    ajC1[8];                    // Color bits for plane 1
                     15:     BYTE    ajC2[8];                    // Color bits for plane 2
                     16:     BYTE    ajC3[8];                    // Color bits for plane 3
                     17: 
                     18:     BYTE    ajPattern[32];                // Color bits for the mask
                     19:     USHORT  usStyle;                    // Brush style
                     20:     BYTE    fjAccel;                    // Accelerator flags
                     21:     BYTE    jFgColor;                   // Current foreground color
                     22:     BYTE    jBkColor;                   // Current background color
                     23:     BYTE    RealWidth;                  //
                     24:     BYTE    YShiftValue;                //
                     25:     BYTE    jOldBrushRealized;          //
                     26:     DWORD   Width;                      // Width of brush
                     27:     DWORD   Height;
                     28:     BYTE    ajPlaneMasks[32];       //Special Plane masks
                     29:     BYTE    *pPattern;              //Pointer to realized mono pattern
                     30: } BRUSHINST;
                     31: 
                     32: #define BRI_SOLID           0
                     33: #define BRI_HOLLOW          1
                     34: #define BRI_HATCHED         2
                     35: #define BRI_PATTERN         3
                     36: #define BRI_MONO_PATTERN    4
                     37: #define BRI_COLOR_PATTERN   5
                     38: 
                     39: 
                     40: //      Definitions for the pcol_C3 byte of the physical color
                     41: //
                     42: //      Some of these definitions have limitations as to when they
                     43: //      are valid.  They are as follows:
                     44: //
                     45: //      C0_BIT          color device, phys color, solid brushes if SOLID_COLOR
                     46: //      C1_BIT          color device, phys color, solid brushes if SOLID_COLOR
                     47: //      C2_BIT          color device, phys color, solid brushes if SOLID_COLOR
                     48: //      C3_BIT          color device, phys color, solid brushes if SOLID_COLOR
                     49: //      MONO_BIT        mono  device, phys color
                     50: //      ONES_OR_ZEROS   color device, phys color, solid brushes if SOLID_COLOR
                     51: //      GREY_SCALE      color device, dithered solid and hatched brushes
                     52: //      SOLID_BRUSH     color device, solid brush qualifier
                     53: //
                     54: //      There may be brushes where the accelerators could have been set,
                     55: //      but wasn't.  That's life.
                     56: 
                     57: #define C0_BIT          0x01            // C0 color
                     58: #define C1_BIT          0x02            // C1 color
                     59: #define C2_BIT          0x04            // C2 color
                     60: #define C3_BIT          0x08            // C3 color
                     61: #define COLOR_BITS      0x0f            // All the color bits
                     62: #define MONO_BIT        0x10            // Monochrome bit
                     63: #define ONES_OR_ZEROS   0x20            // Color is really all 1's or all 0's
                     64: #define GREY_SCALE      0x40            // Indicates a real grey scale brush
                     65: #define SOLID_BRUSH     0x80            // Indicates a solid color brush
                     66: 
                     67: #define PTRI_INVERT     0x0001
                     68: #define PTRI_ANIMATE    0x0002

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.