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,
|
Font_6x8,
|
||||||
WaveToString(wave));
|
WaveToString(wave));
|
||||||
}
|
}
|
||||||
wave_graphic->DrawTile(*Patch(),
|
wave_graphic->DrawTile(Patch(),
|
||||||
GetScreenMin(),
|
GetScreenMin(),
|
||||||
0,
|
0,
|
||||||
GetScreenMax(),
|
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 w = 0; w < width; w++) {
|
||||||
for (int h = 0; h < height; h++) {
|
for (int h = 0; h < height; h++) {
|
||||||
patch.display.DrawPixel(x+w, y+h,
|
patch->display.DrawPixel(x+w, y+h,
|
||||||
sprite[GetShiftArrayX(w)]
|
sprite[GetShiftArrayX(w)]
|
||||||
[GetShiftArrayY(height-h)]);
|
[GetShiftArrayY(height-h)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sprite::DrawTile(DaisyPatch patch,
|
void Sprite::DrawTile(DaisyPatch* patch,
|
||||||
int x1,
|
int x1,
|
||||||
int y1,
|
int y1,
|
||||||
int x2,
|
int x2,
|
||||||
@ -83,7 +83,7 @@ void Sprite::DrawTile(DaisyPatch patch,
|
|||||||
for (int h = y_min; h < y_max; h++) {
|
for (int h = y_min; h < y_max; h++) {
|
||||||
x = GetShiftArrayX((w-x_min) % width);
|
x = GetShiftArrayX((w-x_min) % width);
|
||||||
y = GetShiftArrayY((h-y_min) % height);
|
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 x starting x coordinate of sprite
|
||||||
* @param y starting y coordinate of sprite
|
* @param y starting y coordinate of sprite
|
||||||
*/
|
*/
|
||||||
void Draw(DaisyPatch patch,
|
void Draw(DaisyPatch* patch,
|
||||||
int x,
|
int x,
|
||||||
int y);
|
int y);
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ class Sprite {
|
|||||||
* @param x2 x coordinate of the second point
|
* @param x2 x coordinate of the second point
|
||||||
* @param y2 y coordinate of the second point
|
* @param y2 y coordinate of the second point
|
||||||
*/
|
*/
|
||||||
void DrawTile(DaisyPatch patch,
|
void DrawTile(DaisyPatch* patch,
|
||||||
int x1,
|
int x1,
|
||||||
int y1,
|
int y1,
|
||||||
int x2,
|
int x2,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user