mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-03 07:45:31 +03:00
Fix a couple issues
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
b533731108
commit
aa8e731eb9
@@ -47,7 +47,8 @@ void Graphics::init(void)
|
|||||||
// Initialize backgrounds
|
// Initialize backgrounds
|
||||||
for (int i = 0; i < numstars; i++)
|
for (int i = 0; i < numstars; i++)
|
||||||
{
|
{
|
||||||
stars[i] = {(int) (fRandom() * 320), (int) (fRandom() * 240), 2, 2};
|
const SDL_Rect star = {(int) (fRandom() * 320), (int) (fRandom() * 240), 2, 2};
|
||||||
|
stars[i] = star;
|
||||||
starsspeed[i] = 4 + (fRandom() * 4);
|
starsspeed[i] = 4 + (fRandom() * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -547,7 +548,7 @@ int Graphics::fill_rect(const SDL_Rect* rect)
|
|||||||
|
|
||||||
int Graphics::fill_rect(const int x, const int y, const int w, const int h)
|
int Graphics::fill_rect(const int x, const int y, const int w, const int h)
|
||||||
{
|
{
|
||||||
SDL_Rect rect = {x, y, w, h};
|
const SDL_Rect rect = {x, y, w, h};
|
||||||
return fill_rect(&rect);
|
return fill_rect(&rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -610,7 +611,7 @@ int Graphics::draw_rect(const SDL_Rect* rect)
|
|||||||
|
|
||||||
int Graphics::draw_rect(const int x, const int y, const int w, const int h)
|
int Graphics::draw_rect(const int x, const int y, const int w, const int h)
|
||||||
{
|
{
|
||||||
SDL_Rect rect{ x, y, w, h };
|
const SDL_Rect rect = {x, y, w, h};
|
||||||
return draw_rect(&rect);
|
return draw_rect(&rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user