Arreglats alguns colorets que havia per ahi rebolicats
fix: Credits no estava ben portat a surfaces
This commit is contained in:
@@ -428,18 +428,16 @@ void Resource::renderProgress()
|
||||
constexpr int BAR_HEIGHT = 10;
|
||||
const int bar_position = options.game.height - BAR_HEIGHT - Y_PADDING;
|
||||
Screen::get()->start();
|
||||
Screen::get()->clearSurface();
|
||||
Screen::get()->clearSurface(static_cast<Uint8>(PaletteColor::BLACK));
|
||||
|
||||
auto surface = Screen::get()->getRendererSurface();
|
||||
const int wired_bar_width = options.game.width - (X_PADDING * 2);
|
||||
SDL_Rect rect_wired = {X_PADDING, bar_position, wired_bar_width, X_PADDING};
|
||||
surface->drawRectBorder(&rect_wired, stringToColor("white"));
|
||||
surface->drawRectBorder(&rect_wired, static_cast<Uint8>(PaletteColor::WHITE));
|
||||
|
||||
const int full_bar_width = wired_bar_width * count_.getPercentage();
|
||||
SDL_Rect rect_full = {X_PADDING, bar_position, full_bar_width, X_PADDING};
|
||||
surface->fillRect(&rect_full, stringToColor("white"));
|
||||
|
||||
Screen::get()->render();
|
||||
surface->fillRect(&rect_full, static_cast<Uint8>(PaletteColor::WHITE));
|
||||
}
|
||||
|
||||
// Comprueba los eventos de la pantalla de carga
|
||||
|
||||
Reference in New Issue
Block a user