comparison tools/libgfx.h @ 1801:0562dd55a1f6

s/DM_IFMT_/DM_COLFMT_/g
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 14 Jun 2018 12:58:44 +0300
parents 027fb7313d85
children a20655e40e6c
comparison
equal deleted inserted replaced
1800:45e7688336dc 1801:0562dd55a1f6
28 }; 28 };
29 29
30 30
31 enum 31 enum
32 { 32 {
33 DM_IFMT_PALETTE, 33 DM_COLFMT_PALETTE,
34 DM_IFMT_RGB, 34 DM_COLFMT_RGB,
35 DM_IFMT_RGBA, 35 DM_COLFMT_RGBA,
36 }; 36 };
37 37
38 38
39 // Error handling modes 39 // Error handling modes
40 enum 40 enum
67 67
68 68
69 // Bitmapped image struct 69 // Bitmapped image struct
70 typedef struct 70 typedef struct
71 { 71 {
72 int format; // one of types specified by DM_IFMT_* 72 int format; // one of types specified by DM_COLFMT_*
73 int width, height; 73 int width, height;
74 int pitch; // bytes per scanline 74 int pitch; // bytes per scanline
75 int bpp; // bits per pixel 75 int bpp; // bits per pixel
76 76
77 float aspect; // aspect ratio (vert / horiz), <= 0 if not set 77 float aspect; // aspect ratio (vert / horiz), <= 0 if not set