Fix kernel crash on high screen resolution.

Increase MAX_SCREEN_WIDTH=3840 and MAX_SCREEN_HEIGHT=2160.
Replace hardcoded numbers with macros, add runtime checks.

git-svn-id: svn://kolibrios.org@7522 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2018-11-02 00:14:46 +00:00
parent babba2a8ce
commit cf7de4af9c
4 changed files with 11 additions and 4 deletions

View File

@@ -733,6 +733,9 @@ virtual at OS_BASE + BOOT_VARS
BOOT boot_data
end virtual
MAX_SCREEN_WIDTH = 3840
MAX_SCREEN_HEIGHT = 2160
struct display_t
x dd ?
y dd ?