Skip to content

Commit

Permalink
WAGE: Fixed ver/horisontal lines thickness
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 27, 2015
1 parent a4ba931 commit bb46957
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions engines/wage/design.cpp
Expand Up @@ -560,13 +560,13 @@ void Design::drawThickLine (int x1, int y1, int x2, int y2, int thick, int color
if (dx == 0) {
if (y1 > y2)
SWAP(y1, y2);
Common::Rect r(x1, y1, x1 + thick, y2);
Common::Rect r(x1, y1, x1 + thick - 1, y2);
drawFilledRect(r, color, plotProc, data);
return;
} else if (dy == 0) {
if (x1 > x2)
SWAP(x1, x2);
Common::Rect r(x1, y1, x2, y1 + thick);
Common::Rect r(x1, y1, x2, y1 + thick - 1);
drawFilledRect(r, color, plotProc, data);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions engines/wage/wage.cpp
Expand Up @@ -108,8 +108,8 @@ Common::Error WageEngine::run() {
Graphics::Surface screen;
screen.create(640, 480, Graphics::PixelFormat::createFormatCLUT8());
Common::Rect r(0, 0, screen.w, screen.h);
//_world->_objs["frank.1"]->_design->setBounds(&r);
//_world->_objs["frank.1"]->_design->paint(&screen, _world->_patterns, false);
_world->_objs["frank.1"]->_design->setBounds(&r);
_world->_objs["frank.1"]->_design->paint(&screen, _world->_patterns, false);
_world->_scenes["temple of the holy mackeral"]->_design->setBounds(&r);
_world->_scenes["temple of the holy mackeral"]->_design->paint(&screen, _world->_patterns, false);
//_world->_scenes["tower level 3"]->_design->setBounds(&r);
Expand Down

0 comments on commit bb46957

Please sign in to comment.