- [DEL] Oblida-ho, no fa falta un mode consola, la mateixa solució val pa tot...
This commit is contained in:
1 parent
c0faf074fe
commit
5892ee7ddd
2 files changed
+3
-8
No files matched your search
@@ -77,12 +77,8 @@ namespace backend
|
|||||||
{
|
{
|
||||||
dest_rect.w = width * zoom;
|
dest_rect.w = width * zoom;
|
||||||
dest_rect.h = height * zoom;
|
dest_rect.h = height * zoom;
|
||||||
if (mini::win::state.console) {
|
dest_rect.x = (ww - dest_rect.w)/2;
|
||||||
dest_rect.x = (ww - dest_rect.w)/2;
|
dest_rect.y = (wh - dest_rect.h)/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);
|
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();
|
shader::reinit();
|
||||||
|
|||||||
@@ -69,8 +69,7 @@ void read_ini() {
|
|||||||
else if (strcmp(line, "width") == 0) { mini::win::state.width = atoi(value); log_msg(LOG_VERBOSE, "screen width = %i\n", mini::win::state.width); }
|
else if (strcmp(line, "width") == 0) { mini::win::state.width = atoi(value); log_msg(LOG_VERBOSE, "screen width = %i\n", mini::win::state.width); }
|
||||||
else if (strcmp(line, "height") == 0) { mini::win::state.height = atoi(value); log_msg(LOG_VERBOSE, "screen height = %i\n", mini::win::state.height); }
|
else if (strcmp(line, "height") == 0) { mini::win::state.height = atoi(value); log_msg(LOG_VERBOSE, "screen height = %i\n", mini::win::state.height); }
|
||||||
else if (strcmp(line, "zoom") == 0) { mini::win::state.zoom = atoi(value); log_msg(LOG_VERBOSE, "screen zoom = %i\n", mini::win::state.zoom); }
|
else if (strcmp(line, "zoom") == 0) { mini::win::state.zoom = atoi(value); log_msg(LOG_VERBOSE, "screen zoom = %i\n", mini::win::state.zoom); }
|
||||||
else if (strcmp(line, "fullscreen") == 0) { mini::win::state.fullscreen = atoi(value); log_msg(LOG_VERBOSE, "screen sullscreen = %i\n", mini::win::state.fullscreen); }
|
else if (strcmp(line, "fullscreen") == 0) { mini::win::state.fullscreen = (strcmp("true", value)==0); log_msg(LOG_VERBOSE, "screen sullscreen = %s\n", mini::win::state.fullscreen?"true":"false"); }
|
||||||
else if (strcmp(line, "console") == 0) { mini::win::state.console = atoi(value); log_msg(LOG_VERBOSE, "run from console = %i\n", mini::win::state.console); }
|
|
||||||
//else if (strcmp(line, "files") == 0) {
|
//else if (strcmp(line, "files") == 0) {
|
||||||
//lua_files = (char*)malloc(strlen(value));
|
//lua_files = (char*)malloc(strlen(value));
|
||||||
// strcpy(lua_files, value);
|
// strcpy(lua_files, value);
|
||||||
|
|||||||
Reference in new issue
Block a user