ecere/gfx/newFonts/DrawManager: rotation normfactor tweak
authorJerome St-Louis <jerome@ecere.com>
Wed, 3 Feb 2016 05:51:48 +0000 (00:51 -0500)
committerJerome St-Louis <jerome@ecere.com>
Mon, 21 Nov 2016 14:18:44 +0000 (09:18 -0500)
ecere/src/gfx/newFonts/drawManager.ec

index 5f88f6b..2840017 100644 (file)
@@ -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)