summaryrefslogtreecommitdiff
path: root/src/interface/Panel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface/Panel.cpp')
-rw-r--r--src/interface/Panel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/Panel.cpp b/src/interface/Panel.cpp
index 3b9cfc1..d673037 100644
--- a/src/interface/Panel.cpp
+++ b/src/interface/Panel.cpp
@@ -161,7 +161,7 @@ void Panel::Draw(const Point& screenPos)
//dst=(pixel *)sdl_scrn->pixels+y*sdl_scrn->pitch/PIXELSIZE+x;
for (int row = 0; row < Size.Y; row++)
{
- std::copy(myVid+(row*Size.W), myVid+(row*Size.W)+Size.W, lastVid+(screenPos.Y*(XRES+BARSIZE))+screenPos.X);
+ std::copy(myVid+(row*(XRES+BARSIZE)), myVid+(row*(XRES+BARSIZE))+Size.X, lastVid+((screenPos.Y+row)*(XRES+BARSIZE))+screenPos.X);
}
#endif
}