From f634cb76dd9d1c36443b84de87e66f1e3022ed30 Mon Sep 17 00:00:00 2001 From: turbocat Date: Tue, 16 Feb 2021 19:31:15 +0000 Subject: [PATCH] - Fix max_screen_size() function in kos32sys.h git-svn-id: svn://kolibrios.org@8595 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/sdk/sources/newlib/libc/include/kos32sys.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/contrib/sdk/sources/newlib/libc/include/kos32sys.h b/contrib/sdk/sources/newlib/libc/include/kos32sys.h index 482bdadf62..65a37411c7 100644 --- a/contrib/sdk/sources/newlib/libc/include/kos32sys.h +++ b/contrib/sdk/sources/newlib/libc/include/kos32sys.h @@ -553,13 +553,14 @@ static inline pos_t max_screen_size() { pos_t size; + pos_t size_tmp; __asm__ __volatile__( "int $0x40" - :"=a"(size) + :"=a"(size_tmp) :"a"(14)); - - - return size; + size.x = size_tmp.y; + size.y = size_tmp.x; + return size; }; static inline void get_system_colors(struct kolibri_system_colors *color_table)