Skip to content

Commit

Permalink
Render rd7tf bg to UI7 DrawList
Browse files Browse the repository at this point in the history
  • Loading branch information
tobid7 committed Jun 8, 2024
1 parent 684ce19 commit d782c96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RenderD7
Submodule RenderD7 updated from f399f0 to 07ed5a
5 changes: 2 additions & 3 deletions source/bg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ static void Wave(int index, R7Vec2 position, R7Vec2 size, float time) {
}
// Just to make sure...
y_position = std::min(y_position, position.y + size.y - (90 - shrink));

DV2::TriangleSolid(
UI7::GetBackgroundList()->AddTriangle(
R7Vec2(x_position, y_position),
R7Vec2(x_position + 300, y_position + (90 - shrink)),
R7Vec2(x_position - 300, y_position + (90 - shrink)),
Expand All @@ -34,7 +33,7 @@ static void Wave(int index, R7Vec2 position, R7Vec2 size, float time) {
}

void DrawWavedBg(R7Vec2 position, R7Vec2 size, float time) {
DV2::RectFilledSolid(position, size, 0xff64c9fd);
UI7::GetBackgroundList()->AddRectangle(position, size, 0xff64c9fd);
int i = 0;
for (; i < 44; i++) Wave(i, position, size, time);
}
Expand Down

0 comments on commit d782c96

Please sign in to comment.