- 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:
parent
031ccc8bf9
commit
f634cb76dd
@ -553,13 +553,14 @@ static inline
|
|||||||
pos_t max_screen_size()
|
pos_t max_screen_size()
|
||||||
{
|
{
|
||||||
pos_t size;
|
pos_t size;
|
||||||
|
pos_t size_tmp;
|
||||||
__asm__ __volatile__(
|
__asm__ __volatile__(
|
||||||
"int $0x40"
|
"int $0x40"
|
||||||
:"=a"(size)
|
:"=a"(size_tmp)
|
||||||
:"a"(14));
|
:"a"(14));
|
||||||
|
size.x = size_tmp.y;
|
||||||
|
size.y = size_tmp.x;
|
||||||
return size;
|
return size;
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline void get_system_colors(struct kolibri_system_colors *color_table)
|
static inline void get_system_colors(struct kolibri_system_colors *color_table)
|
||||||
|
Loading…
Reference in New Issue
Block a user