int get_display_resolution_width(void)
{
#ifndef CONFIG_JAVA_UI
- return qemu_console_get_width(NULL, -1);
+ return qemu_console_get_width(NULL, initial_resolution_width);
#else
if (display_type == DT_MARU_QT_ONSCREEN ||
display_type == DT_MARU_QT_OFFSCREEN) {
- return qemu_console_get_width(NULL, -1);
+ return qemu_console_get_width(NULL, initial_resolution_width);
}
if (initial_resolution_width == -1) {
set_resolution_legacy();
int get_display_resolution_height(void)
{
#ifndef CONFIG_JAVA_UI
- return qemu_console_get_height(NULL, -1);
+ return qemu_console_get_height(NULL, initial_resolution_height);
#else
if (display_type == DT_MARU_QT_ONSCREEN ||
- display_type == DT_MARU_QT_OFFSCREEN) {
+ display_type == DT_MARU_QT_OFFSCREEN,
+ initial_resolution_height) {
return qemu_console_get_height(NULL, -1);
}
if (initial_resolution_height == -1) {