update comments

This commit is contained in:
AJ Kelly
2011-02-23 21:06:24 -06:00
parent d980029b29
commit 2c6f990f7d
+2 -2
View File
@@ -427,14 +427,14 @@ public:
// the window's width/height? -aj // the window's width/height? -aj
static int GetMouseX( T* p, lua_State *L ){ static int GetMouseX( T* p, lua_State *L ){
float fX = p->GetCursorX(); float fX = p->GetCursorX();
// scale input // Scale input to the theme's dimensions
fX = SCALE( fX, 0, (PREFSMAN->m_iDisplayHeight * PREFSMAN->m_fDisplayAspectRatio), SCREEN_LEFT, SCREEN_RIGHT ); fX = SCALE( fX, 0, (PREFSMAN->m_iDisplayHeight * PREFSMAN->m_fDisplayAspectRatio), SCREEN_LEFT, SCREEN_RIGHT );
lua_pushnumber( L, fX ); lua_pushnumber( L, fX );
return 1; return 1;
} }
static int GetMouseY( T* p, lua_State *L ){ static int GetMouseY( T* p, lua_State *L ){
float fY = p->GetCursorY(); float fY = p->GetCursorY();
// scale input // Scale input to the theme's dimensions
fY = SCALE( fY, 0, PREFSMAN->m_iDisplayHeight, SCREEN_TOP, SCREEN_BOTTOM ); fY = SCALE( fY, 0, PREFSMAN->m_iDisplayHeight, SCREEN_TOP, SCREEN_BOTTOM );
lua_pushnumber( L, fY ); lua_pushnumber( L, fY );
return 1; return 1;