Added missing GraphicOptions help text, re-added F4 fullscreen and F5 detail toggles, fixed texel-pixel alignment in Sprite, BitmapText

This commit is contained in:
Chris Danford
2002-11-12 11:11:16 +00:00
parent 5b33869ed8
commit 19244acaf1
4 changed files with 54 additions and 18 deletions
+7 -4
View File
@@ -194,10 +194,13 @@ void BitmapText::DrawPrimitives()
// Offset so that pixels are aligned to texels
// Offset by -0.5, -0.5 if 640x480
// Offset by -1.0, -1.0 if 320x240
DISPLAY->TranslateLocal(
-0.5f*SCREEN_WIDTH/(float)PREFSMAN->m_iDisplayWidth,
-0.5f*SCREEN_HEIGHT/(float)PREFSMAN->m_iDisplayHeight,
0 );
// 11/12/2002: Why in the world is this not needed with the OpenGL renderer?
// We're using the exact same orthographic projection transform. Anyway, things
// are perfectly aligned without this TranslateLocal
// DISPLAY->TranslateLocal(
// -0.5f*SCREEN_WIDTH/(float)PREFSMAN->m_iDisplayWidth,
// -0.5f*SCREEN_HEIGHT/(float)PREFSMAN->m_iDisplayHeight,
// 0 );
if( m_iNumLines == 0 )
return;