We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a600fc3 commit 5df3e7fCopy full SHA for 5df3e7f
source/code/main.cpp
@@ -292,12 +292,12 @@ void DrawBackground(SDL_Renderer* target) {
292
if (globalData.theme.background.tileMoveSpeedX) {
293
nextX -= (ticks/globalData.theme.background.tileMoveSpeedX)%background.GetWidth();
294
}
295
- while (nextX < globalData.xsize) {
+ while (nextX < w) {
296
int nextY = 0;
297
if (globalData.theme.background.tileMoveSpeedY) {
298
nextY -= (ticks/globalData.theme.background.tileMoveSpeedY)%background.GetWidth();
299
300
- while (nextY < globalData.ysize) {
+ while (nextY < h ) {
301
background.Draw(target, ticks, nextX, nextY);
302
nextY += background.GetHeight();
303
0 commit comments