mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Varoom: Make sky height dynamic
This commit makes it so that Varoom's sky is properly rendered across multiple resolutions. It also lowers the sun down by 10 pixels.
This commit is contained in:
parent
ea9dab14d3
commit
f8f0c435bb
1 changed files with 4 additions and 4 deletions
|
@ -494,7 +494,7 @@ U0 DrawIt(CTask *task, CDC *dc)
|
|||
Car *tmpc = &c[0];
|
||||
|
||||
dc->color = LTCYAN;
|
||||
GrRect(dc, 0, 0, w, HORIZON_DIP * Sin(dip_é) + FONT_HEIGHT * 4.5);
|
||||
GrRect(dc, 0, 0, w, HORIZON_DIP * Sin(dip_é) + h/8);
|
||||
|
||||
Mat4x4IdentEqu(r);
|
||||
Mat4x4RotY(r, ă - c[0].é);
|
||||
|
@ -511,9 +511,9 @@ U0 DrawIt(CTask *task, CDC *dc)
|
|||
if (y < 0)
|
||||
{
|
||||
dc->color = BROWN;
|
||||
GrCircle(dc, s * x + cx, 15 + HORIZON_DIP * Sin(dip_é), 15);
|
||||
GrCircle(dc, s * x + cx, 25 + HORIZON_DIP * Sin(dip_é), 15);
|
||||
dc->color = YELLOW;
|
||||
GrFloodFill(dc, s * x + cx, 15 + HORIZON_DIP * Sin(dip_é));
|
||||
GrFloodFill(dc, s * x + cx, 25 + HORIZON_DIP * Sin(dip_é));
|
||||
}
|
||||
|
||||
mp_not_done_flags = 1 << mp_count - 1;
|
||||
|
@ -936,4 +936,4 @@ Varoom;
|
|||
|