changeset 2469:637a310e3f27

Adjust DM_FMT_* flag values slightly.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 17 Apr 2020 16:31:06 +0300
parents 16c57206cef7
children abc0b42cfbc5
files tools/libgfx.h
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tools/libgfx.h	Thu Apr 16 17:38:56 2020 +0300
+++ b/tools/libgfx.h	Fri Apr 17 16:31:06 2020 +0300
@@ -72,13 +72,14 @@
 };
 
 
-// Flags for readability/writeability of formats
+// Flags for readability/writeability support of formats
+// These can be combined with DM_PIXFMT_* for some uses.
 enum
 {
-    DM_FMT_WR              = 0x0001, // Format can be written
-    DM_FMT_RD              = 0x0002, // Format can be read
+    DM_FMT_WR              = 0x00001, // Format can be written
+    DM_FMT_RD              = 0x00002, // Format can be read
     DM_FMT_RDWR            = (DM_FMT_RD | DM_FMT_WR), // Read and write support
-    DM_FMT_BROKEN          = 0x1000, // Support is broken/incomplete
+    DM_FMT_BROKEN          = 0x00008, // Support is broken/incomplete
 };