- [CHG] Gestió de interrupcions pasada a "mem" (futur "bus")
- [CHG] Reorganitzacions i neteja de codi - [NEW] Constants del espai io en la seua pròpia capçalera - [NEW] Comentaris en algunes parts menys obvies del codi - [CHG] Alguns defines passats a constexpr - [CHG] display::init() no feia més que cridar a display::reinit(). Concretats els dos en display::init() - [ONGOING] Passant la responsabilitat de tornar el foco a la finestra principal (que estaba en el mòdul debug) al gestor de finestres.
This commit is contained in:
+3
-8
@@ -69,7 +69,7 @@ namespace display
|
||||
return true;
|
||||
}
|
||||
|
||||
void reinit()
|
||||
void init()
|
||||
{
|
||||
if (win) ui::window::unregisterWindow(SDL_GetWindowID(win));
|
||||
|
||||
@@ -106,11 +106,6 @@ namespace display
|
||||
focus();
|
||||
}
|
||||
|
||||
void init()
|
||||
{
|
||||
reinit();
|
||||
}
|
||||
|
||||
void focus()
|
||||
{
|
||||
if (win)
|
||||
@@ -188,7 +183,7 @@ namespace display
|
||||
if (144*value > dm.h) return;
|
||||
|
||||
zoom = value;
|
||||
reinit();
|
||||
init();
|
||||
}
|
||||
|
||||
void incZoom()
|
||||
@@ -206,7 +201,7 @@ namespace display
|
||||
void toggleFullscreen()
|
||||
{
|
||||
fullscreen = !fullscreen;
|
||||
reinit();
|
||||
init();
|
||||
}
|
||||
|
||||
const bool getFullscreen()
|
||||
|
||||
Reference in New Issue
Block a user