diff src/libgfx.h @ 1285:e4bda4909d72

Make libgfx error mode a global variable, at least for now.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 18 Aug 2017 14:08:08 +0300
parents f654435df15e
children b812fad6f33e
line wrap: on
line diff
--- a/src/libgfx.h	Fri Aug 18 03:09:26 2017 +0300
+++ b/src/libgfx.h	Fri Aug 18 14:08:08 2017 +0300
@@ -38,6 +38,14 @@
 };
 
 
+enum
+{
+    DM_ERRMODE_FAIL     = 0,
+    DM_ERRMODE_RECOV_1,
+    DM_ERRMODE_RECOV_2,
+};
+
+
 // Bitmapped image struct (can be one of types specified by DM_IFMT_*)
 typedef struct
 {
@@ -78,6 +86,7 @@
 
 
 extern DMImageFormat dmImageFormatList[IMGFMT_LAST];
+extern int dmGFXErrorMode;
 
 
 DMImage * dmImageAlloc(int width, int height);