summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-08 03:46:31 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-08 03:46:31 (GMT)
commit57a490584151ecf75ce1273ffd6e9413e3b85835 (patch)
tree6752bbc5a4b8c8874c3ba69b6e3937a1d9e019a7 /gfx
parentfa130f5a73cee267856102d90bdb48bf5aaa1307 (diff)
downloadeeshow-57a490584151ecf75ce1273ffd6e9413e3b85835.zip
eeshow-57a490584151ecf75ce1273ffd6e9413e3b85835.tar.gz
eeshow-57a490584151ecf75ce1273ffd6e9413e3b85835.tar.bz2
gfx/misc.c (rx, ry, matrix_is_mirrored): don't use assert(0)
Diffstat (limited to 'gfx')
-rw-r--r--gfx/misc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gfx/misc.c b/gfx/misc.c
index dd3cef9..bc58fd9 100644
--- a/gfx/misc.c
+++ b/gfx/misc.c
@@ -14,7 +14,6 @@
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
-#include <assert.h>
#include "misc/diag.h"
#include "gfx/misc.h"
@@ -70,7 +69,7 @@ bool matrix_is_mirrored(const int m[6])
if (eq(m, 0, -1, 1, 0))
return 1;
- assert(0);
+ fatal("unrecognized matrix %d %d %d %d\n", m[1], m[2], m[4], m[5]);
}
@@ -96,8 +95,7 @@ int rx(int x, int y, int rot)
case 270:
return -y;
default:
- assert(0);
-
+ fatal("rotation %d is not implemented", rot);
}
}
@@ -114,7 +112,6 @@ int ry(int x, int y, int rot)
case 270:
return x;
default:
- assert(0);
-
+ fatal("rotation %d is not implemented", rot);
}
}