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) {
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) {