[Scummvm-cvs-logs] scummvm master -> b351cd28e95cb01eaea70b4fdcd26804be428010

sev- sev at scummvm.org
Sun Apr 17 13:26:05 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b351cd28e9 WAGE: Improved accuracy of think line drawing.


Commit: b351cd28e95cb01eaea70b4fdcd26804be428010
    https://github.com/scummvm/scummvm/commit/b351cd28e95cb01eaea70b4fdcd26804be428010
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-04-17T13:25:41+02:00

Commit Message:
WAGE: Improved accuracy of think line drawing.

Still not perfect, it looks like our Bresenham is a bit different
from the one used by QuickDraw, or (most likely) the polygon
drawing is different.

Changed paths:
    engines/wage/design.cpp



diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp
index 185c051..e84cf2e 100644
--- a/engines/wage/design.cpp
+++ b/engines/wage/design.cpp
@@ -208,9 +208,9 @@ void drawPixel(int x, int y, int color, void *data) {
 		if (p->thickness == 1) {
 			p->design->adjustBounds(x, y);
 		} else {
-			int x1 = x - p->thickness / 2;
+			int x1 = x;
 			int x2 = x1 + p->thickness;
-			int y1 = y - p->thickness / 2;
+			int y1 = y;
 			int y2 = y1 + p->thickness;
 
 			for (y = y1; y < y2; y++)
@@ -233,9 +233,9 @@ void drawPixel(int x, int y, int color, void *data) {
 					color : kColorWhite;
 		}
 	} else {
-		int x1 = x - p->thickness / 2;
+		int x1 = x;
 		int x2 = x1 + p->thickness;
-		int y1 = y - p->thickness / 2;
+		int y1 = y;
 		int y2 = y1 + p->thickness;
 
 		for (y = y1; y < y2; y++)






More information about the Scummvm-git-logs mailing list