Changeset 836 for trunk/core/luascript.c
- Timestamp:
- 11/12/09 04:13:30 (4 years ago)
- File:
-
- 1 edited
-
trunk/core/luascript.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/luascript.c
r826 r836 1047 1047 } 1048 1048 1049 #if 0 1050 static int luaCB_set_capture_mode_type( lua_State* L ) 1051 { 1052 unsigned i = luaL_checknumber(L,1); 1053 // TODO check against modemap as valid mode! 1054 SetCurrentCaptureModeType(i); 1055 return 0; 1056 } 1057 #endif 1049 /* TODO warning this interface may change! 1050 set_capture_mode(modenum) 1051 where modenum is a valid PROPCASE_SHOOTING_MODE value for the current camera 1052 */ 1053 static int luaCB_set_capture_mode( lua_State* L ) 1054 { 1055 int modenum = luaL_checknumber(L,1); 1056 // if the value as negative, assume it is a mistakenly sign extended PROPCASE_SHOOTING_MODE value 1057 if(modenum < 0) 1058 modenum &= 0xFFFF; 1059 SetCurrentCaptureModeType((unsigned)modenum); 1060 return 0; 1061 } 1058 1062 1059 1063 /* … … 1221 1225 FUNC(set_levent_active); 1222 1226 FUNC(set_levent_script_mode); 1223 // FUNC(set_capture_mode_type);1227 FUNC(set_capture_mode); 1224 1228 1225 1229 FUNC(set_record);
Note: See TracChangeset
for help on using the changeset viewer.