From 088210251e4abae56c1996bea8df738922e2f555 Mon Sep 17 00:00:00 2001 From: stephena Date: Mon, 28 Mar 2005 20:36:39 +0000 Subject: [PATCH] Some minor changes to line widths in software mode. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@388 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/common/FrameBufferSoft.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stella/src/common/FrameBufferSoft.cxx b/stella/src/common/FrameBufferSoft.cxx index 5730262f2..018578feb 100644 --- a/stella/src/common/FrameBufferSoft.cxx +++ b/stella/src/common/FrameBufferSoft.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: FrameBufferSoft.cxx,v 1.14 2005-03-28 00:04:53 stephena Exp $ +// $Id: FrameBufferSoft.cxx,v 1.15 2005-03-28 20:36:39 stephena Exp $ //============================================================================ #include @@ -335,8 +335,8 @@ void FrameBufferSoft::hLine(uInt32 x, uInt32 y, uInt32 x2, OverlayColor color) // Horizontal line tmp.x = x * theZoomLevel; tmp.y = y * theZoomLevel; - tmp.w = (x2 - x + 1) * theZoomLevel; - tmp.h = theZoomLevel; + tmp.w = (x2 - x) * theZoomLevel; + tmp.h = 2;//theZoomLevel; SDL_FillRect(myScreen, &tmp, myGUIPalette[color]); } @@ -348,8 +348,8 @@ void FrameBufferSoft::vLine(uInt32 x, uInt32 y, uInt32 y2, OverlayColor color) // Vertical line tmp.x = x * theZoomLevel; tmp.y = y * theZoomLevel; - tmp.w = theZoomLevel; - tmp.h = (y2 - y + 1) * theZoomLevel; + tmp.w = 2;//theZoomLevel; + tmp.h = (y2 - y) * theZoomLevel; SDL_FillRect(myScreen, &tmp, myGUIPalette[color]); }