VERSIÓ 1.6.2:
- [FIX] El buffer en que es guardaba l'arxiu de text dels shaders no s'alliberava. - [NEW] Traça per a vore - [NEW] Millors logs de errors de shaders - [NEW] Afegit mode 'consola' per a quan s'executa desde consola sense entorn gràfic
This commit is contained in:
1 parent
9e2b89a4ee
commit
c0faf074fe
6 files changed
+75
-20
No files matched your search
@@ -30,6 +30,7 @@ namespace backend
|
||||
if (zoom <= 0) zoom = 1;
|
||||
const SDL_DisplayMode *dm = SDL_GetDesktopDisplayMode(SDL_GetPrimaryDisplay());
|
||||
while ( width * zoom > dm->w || height * zoom > dm->h) zoom--;
|
||||
log_msg(LOG_INFO, "Display size: %ix%i\n", dm->w, dm->h);
|
||||
|
||||
const int z = mini::win::state.fullscreen ? 1 : zoom;
|
||||
// Crear SDL_Window i SDL_Renderer
|
||||
@@ -74,9 +75,14 @@ namespace backend
|
||||
}
|
||||
else
|
||||
{
|
||||
dest_rect.x = dest_rect.y = 0;
|
||||
dest_rect.w = width * zoom;
|
||||
dest_rect.h = height * zoom;
|
||||
if (mini::win::state.console) {
|
||||
dest_rect.x = (ww - dest_rect.w)/2;
|
||||
dest_rect.y = (wh - dest_rect.h)/2;
|
||||
} else {
|
||||
dest_rect.x = dest_rect.y = 0;
|
||||
}
|
||||
printf("dest_rect: (%i,%i)-(%i,%i)\n", (int)dest_rect.x, (int)dest_rect.y, (int)dest_rect.w, (int)dest_rect.h);
|
||||
}
|
||||
shader::reinit();
|
||||
|
||||
Reference in new issue
Block a user