[Scummvm-cvs-logs] CVS: residual lua.cpp,1.133,1.134

Pawel Kolodziejski aquadran at users.sourceforge.net
Fri Apr 8 07:49:29 CEST 2005


Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21058

Modified Files:
	lua.cpp 
Log Message:
added code for SetVideoDevices

Index: lua.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/lua.cpp,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -d -r1.133 -r1.134
--- lua.cpp	8 Apr 2005 14:35:13 -0000	1.133
+++ lua.cpp	8 Apr 2005 14:48:48 -0000	1.134
@@ -519,6 +519,8 @@
 }
 
 static void SetVideoDevices() {
+	int devId = check_int(1);
+	int modeId = check_int(2);
 	// ignore setting video devices
 }
 
@@ -530,7 +532,7 @@
 static void EnumerateVideoDevices() {
 	lua_Object result = lua_createtable();
 	lua_pushobject(result);
-	lua_pushnumber(0); // id of device
+	lua_pushnumber(0.0); // id of device
 	lua_pushstring("SDL Video Device"); // name of device
 	lua_settable();
 	lua_pushobject(result);
@@ -540,7 +542,7 @@
 	int num = check_int(1);
 	lua_Object result = lua_createtable();
 	lua_pushobject(result);
-	lua_pushnumber(-1);
+	lua_pushnumber(-1.0);
 	if (g_driver->isHardwareAccelerated()) {
 		lua_pushstring("OpenGL"); // type of 3d renderer
 	} else {





More information about the Scummvm-git-logs mailing list