Skip to content

Commit

Permalink
Fixing CPZ on tall screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed Jun 6, 2015
1 parent f592638 commit 433e2e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CPZ/CPZ.cs
Expand Up @@ -17,7 +17,7 @@ public class CPZ : SonicBGScrollSaver.Level
BitmapBits levelimg, tmpimg;
Bitmap bgimg = new Bitmap(1, 1);
int Width, Height;
int AnimWait, AnimTime, AnimFrame;
int AnimTime, AnimFrame;
BitmapBits[] CPZAnimBackImgs, CPZAnimBackImgsFlip;
List<Point> Anim1Locs, Anim2Locs;
short[] pal_lengths = new short[3] { 9, 0x15, 0xF };
Expand Down Expand Up @@ -63,7 +63,7 @@ public override void Init(int width, int height)
CPZAnimBackImgsFlip[i] = new BitmapBits(CPZAnimBackImgs[i]);
CPZAnimBackImgsFlip[i].Flip(true, false);
}
AnimFrame = AnimTime = AnimWait = 0;
AnimFrame = AnimTime = 0;
Anim1Locs = new List<Point>();
Anim2Locs = new List<Point>();
for (int cy = 0; cy < LevelData.BGHeight; cy++)
Expand All @@ -84,7 +84,7 @@ public override void Init(int width, int height)
framecounter = 0;
Camera_X_pos = 0;
if (levelimg.Height < Height)
Camera_Y_pos = Height - levelimg.Height;
Camera_Y_pos = levelimg.Height - Height;
else
Camera_Y_pos = 0;
Camera_BG_X_pos = 0;
Expand Down

0 comments on commit 433e2e4

Please sign in to comment.