Fixed VCO title graphic

This commit is contained in:
Christian Colglazier 2021-05-28 13:41:22 -04:00
parent 77893f3e1e
commit 6880246cca
3 changed files with 7 additions and 7 deletions

View File

@ -93,7 +93,7 @@ void VCODroplet::Draw() {
Font_6x8,
WaveToString(wave));
}
wave_graphic->DrawTile(*Patch(),
wave_graphic->DrawTile(Patch(),
GetScreenMin(),
0,
GetScreenMax(),

View File

@ -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]);
}
}
}

View File

@ -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,