- Fix max_screen_size() function in kos32sys.h

git-svn-id: svn://kolibrios.org@8595 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat 2021-02-16 19:31:15 +00:00
parent 031ccc8bf9
commit f634cb76dd

View File

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