fix song backgrounds, probably other things

This commit is contained in:
Glenn Maynard
2004-11-11 22:31:55 +00:00
parent 215a1ba9fb
commit e0ef0da9e9
2 changed files with 9 additions and 2 deletions
+4
View File
@@ -152,6 +152,10 @@ void Lua::UpdateGlobals()
ASSERT( L );
/* Important: eplicitly refresh cached metrics that we use. */
SCREEN_WIDTH.Read();
SCREEN_HEIGHT.Read();
lua_pushnumber( L, SCREEN_WIDTH );
lua_setglobal( L, "SCREEN_WIDTH" );
lua_pushnumber( L, SCREEN_HEIGHT );