[Scummvm-git-logs] scummvm master -> 976c57a4b10db959968a6fb287f1073097e14cc4

moralrecordings code at moral.net.au
Sun Jan 5 05:21:37 UTC 2020


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:
976c57a4b1 DIRECTOR: Fix rounded rect radius


Commit: 976c57a4b10db959968a6fb287f1073097e14cc4
    https://github.com/scummvm/scummvm/commit/976c57a4b10db959968a6fb287f1073097e14cc4
Author: Scott Percival (code at moral.net.au)
Date: 2020-01-05T13:21:15+08:00

Commit Message:
DIRECTOR: Fix rounded rect radius

Changed paths:
    engines/director/frame.cpp


diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp
index f50d31e..83a243f 100644
--- a/engines/director/frame.cpp
+++ b/engines/director/frame.cpp
@@ -736,7 +736,7 @@ void Frame::renderShape(Graphics::ManagedSurface &surface, uint16 spriteId) {
 		Graphics::drawFilledRect(fillRect, foreColor, Graphics::macDrawPixel, &pd);
 		break;
 	case kRoundedRectangleSprite:
-		Graphics::drawRoundRect(fillRect, 4, foreColor, true, Graphics::macDrawPixel, &pd);
+		Graphics::drawRoundRect(fillRect, 12, foreColor, true, Graphics::macDrawPixel, &pd);
 		break;
 	case kOvalSprite:
 		Graphics::drawEllipse(fillRect.left, fillRect.top, fillRect.right, fillRect.bottom, foreColor, true, Graphics::macDrawPixel, &pd);
@@ -752,7 +752,7 @@ void Frame::renderShape(Graphics::ManagedSurface &surface, uint16 spriteId) {
 		tmpSurface.fillRect(Common::Rect(shapeRect.width(), shapeRect.height()), (_vm->getCurrentScore()->_currentMouseDownSpriteId == spriteId ? 0 : 0xff));
 		break;
 	case kOutlinedRoundedRectangleSprite:
-		Graphics::drawRoundRect(fillRect, 4, foreColor, false, Graphics::macDrawPixel, &pd);
+		Graphics::drawRoundRect(fillRect, 12, foreColor, false, Graphics::macDrawPixel, &pd);
 		break;
 	case kOutlinedOvalSprite:
 		Graphics::drawEllipse(fillRect.left, fillRect.top, fillRect.right, fillRect.bottom, foreColor, false, Graphics::macDrawPixel, &pd);




More information about the Scummvm-git-logs mailing list