mirror of
https://github.com/AquaMorph/Droplets.git
synced 2025-04-30 01:35:34 +00:00
Fixed VCO title graphic
This commit is contained in:
parent
77893f3e1e
commit
6880246cca
@ -93,7 +93,7 @@ void VCODroplet::Draw() {
|
||||
Font_6x8,
|
||||
WaveToString(wave));
|
||||
}
|
||||
wave_graphic->DrawTile(*Patch(),
|
||||
wave_graphic->DrawTile(Patch(),
|
||||
GetScreenMin(),
|
||||
0,
|
||||
GetScreenMax(),
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user