diff scn2k/scn2k_grp.cc @ 43:01aa5ddf7dc8

A lot of very minor improvements (deleted some unused variables, and other things like that...)
author thib
date Tue, 24 Mar 2009 19:45:48 +0000
parents f45da03ca631
children ed6c21dde840
line wrap: on
line diff
--- a/scn2k/scn2k_grp.cc
+++ b/scn2k/scn2k_grp.cc
@@ -306,7 +306,6 @@ void GrpObj::GetSrcGeom(int& width, int&
 			return;
 		}
 		const char* data = info->Read();
-		int srclen = read_little_endian_int(data+5);
 		if (data && *data == 2) { // 画像ファイル内にボタン情報が存在する
 			int srclen = read_little_endian_int(data+5);
 			int i;
@@ -2066,7 +2065,9 @@ 487 / 8047 : unsupported command; 0x23 -
 				// オブジェクトのどの部分を画面に表示するか(クリップ領域)の設定
 				int rx = cmd.args[1].value;
 				int ry = cmd.args[2].value;
-				g.SetClipArea(cmd.args[1].value, cmd.args[2].value, cmd.args[3].value,cmd.args[4].value);
+				int x2 = cmd.args[3].value;
+				int y2 = cmd.args[4].value;
+				g.SetClipArea(rx, ry, x2, y2); //TODO: case when cmd.args.size() == 1
 				cmd.clear();
 			} else if (cmd.cmd3 == 0x40d) { // set digit number
 				g.dig_number = cmd.args[1].value;