[Scummvm-cvs-logs] SF.net SVN: scummvm:[43153] scummvm/branches/branch-1-0-0/engines/agos/ icons.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Sun Aug 9 03:21:56 CEST 2009


Revision: 43153
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43153&view=rev
Author:   Kirben
Date:     2009-08-09 01:21:56 +0000 (Sun, 09 Aug 2009)

Log Message:
-----------
Backport fix for bug #2834254 - ELVIRA: Buggy scroll arrows when mixing spells.

Modified Paths:
--------------
    scummvm/branches/branch-1-0-0/engines/agos/icons.cpp

Modified: scummvm/branches/branch-1-0-0/engines/agos/icons.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/agos/icons.cpp	2009-08-09 01:20:08 UTC (rev 43152)
+++ scummvm/branches/branch-1-0-0/engines/agos/icons.cpp	2009-08-09 01:21:56 UTC (rev 43153)
@@ -860,16 +860,16 @@
 	x = 30;
 	y = 151;
 	if (num != 2) {
-		y = window->height * 4 + window->y - 19;
-		x = window->width + window->x;
+		y = window->y + window->height * 4 - 19;
+		x = window->x + window->width;
 	}
 	drawArrow(x, y, 16);
 
 	ha = findEmptyHitArea();
 	_scrollUpHitArea = ha - _hitAreas;
 
-	ha->x = 30 * 8;
-	ha->y = 151;
+	ha->x = x * 8;
+	ha->y = y;
 	ha->width = 16;
 	ha->height = 19;
 	ha->flags = kBFBoxInUse;
@@ -881,16 +881,16 @@
 	x = 30;
 	y = 170;
 	if (num != 2) {
-		y = window->height * 4;
-		x = window->width + window->x;
+		y = window->y + window->height * 4;
+		x = window->x + window->width;
 	}
 	drawArrow(x, y, -16);
 
 	ha = findEmptyHitArea();
 	_scrollDownHitArea = ha - _hitAreas;
 
-	ha->x = 30 * 8;
-	ha->y = 170;
+	ha->x = x * 8;
+	ha->y = y;
 	ha->width = 16;
 	ha->height = 19;
 	ha->flags = kBFBoxInUse;
@@ -956,7 +956,8 @@
 
 	for (h = 0; h < 19; h++) {
 		for (w = 0; w < 16; w++) {
-			dst[w] = src[w] + 16;
+			if (src[w]) 
+				dst[w] = src[w] + 16;
 		}
 
 		src += dir;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list