Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4828d55
)
ecere/gfx/newFonts/DrawManager: rotation normfactor tweak
author
Jerome St-Louis
<jerome@ecere.com>
Wed, 3 Feb 2016 05:51:48 +0000
(
00:51
-0500)
committer
Jerome St-Louis
<jerome@ecere.com>
Wed, 2 Nov 2016 16:32:43 +0000
(12:32 -0400)
ecere/src/gfx/newFonts/drawManager.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gfx/newFonts/drawManager.ec
b/ecere/src/gfx/newFonts/drawManager.ec
index
5f88f6b
..
2840017
100644
(file)
--- a/
ecere/src/gfx/newFonts/drawManager.ec
+++ b/
ecere/src/gfx/newFonts/drawManager.ec
@@
-317,7
+317,8
@@
static inline void OpenGLErrorCheck( const char *file, int line )
#define ERRORCHECK()
#endif
-#define DM_IMAGE_ROTATION_NORMFACTOR (32767.0f)
+// Not using 32767.0 ; overflow when converting to int16 due to floating point crud causes problems
+#define DM_IMAGE_ROTATION_NORMFACTOR (24576.0)
#define DM_VERTEX_NORMSHIFT (2)
#define DM_VERTEX_NORMFACTOR (4.0f)