mirror of
https://github.com/AquaMorph/Droplets.git
synced 2025-07-10 05:32:01 +00:00
Fixed VCO title graphic
This commit is contained in:
@ -59,17 +59,17 @@ int Sprite::GetWidth() {
|
||||
|
||||
}
|
||||
|
||||
void Sprite::Draw(DaisyPatch patch, int x, int y) {
|
||||
void Sprite::Draw(DaisyPatch* patch, int x, int y) {
|
||||
for (int w = 0; w < width; w++) {
|
||||
for (int h = 0; h < height; h++) {
|
||||
patch.display.DrawPixel(x+w, y+h,
|
||||
patch->display.DrawPixel(x+w, y+h,
|
||||
sprite[GetShiftArrayX(w)]
|
||||
[GetShiftArrayY(height-h)]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Sprite::DrawTile(DaisyPatch patch,
|
||||
void Sprite::DrawTile(DaisyPatch* patch,
|
||||
int x1,
|
||||
int y1,
|
||||
int x2,
|
||||
@ -83,7 +83,7 @@ void Sprite::DrawTile(DaisyPatch patch,
|
||||
for (int h = y_min; h < y_max; h++) {
|
||||
x = GetShiftArrayX((w-x_min) % width);
|
||||
y = GetShiftArrayY((h-y_min) % height);
|
||||
patch.display.DrawPixel(w, h, sprite[x][y]);
|
||||
patch->display.DrawPixel(w, h, sprite[x][y]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ class Sprite {
|
||||
* @param x starting x coordinate of sprite
|
||||
* @param y starting y coordinate of sprite
|
||||
*/
|
||||
void Draw(DaisyPatch patch,
|
||||
void Draw(DaisyPatch* patch,
|
||||
int x,
|
||||
int y);
|
||||
|
||||
@ -124,7 +124,7 @@ class Sprite {
|
||||
* @param x2 x coordinate of the second point
|
||||
* @param y2 y coordinate of the second point
|
||||
*/
|
||||
void DrawTile(DaisyPatch patch,
|
||||
void DrawTile(DaisyPatch* patch,
|
||||
int x1,
|
||||
int y1,
|
||||
int x2,
|
||||
|
Reference in New Issue
Block a user