Subversion Repositories Kolibri OS

Rev

Rev 7132 | Rev 8224 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7132 Rev 7522
Line 43... Line 43...
43
        movzx   eax, byte [BOOT.bpp]      ; bpp
43
        movzx   eax, byte [BOOT.bpp]      ; bpp
44
        mov     [_display.bits_per_pixel], eax
44
        mov     [_display.bits_per_pixel], eax
45
        mov     [_display.vrefresh], 60
45
        mov     [_display.vrefresh], 60
Line 46... Line 46...
46
 
46
 
-
 
47
        movzx   eax, word [BOOT.x_res]; X max
-
 
48
        cmp     eax, MAX_SCREEN_WIDTH
47
        movzx   eax, word [BOOT.x_res]; X max
49
        ja      $
48
        mov     [_display.width], eax
50
        mov     [_display.width], eax
49
        mov     [ebp+FRB.width], eax
51
        mov     [ebp+FRB.width], eax
50
        mov     [display_width_standard], eax
52
        mov     [display_width_standard], eax
51
        dec     eax
53
        dec     eax
Line 52... Line 54...
52
        mov     [screen_workarea.right], eax
54
        mov     [screen_workarea.right], eax
-
 
55
 
-
 
56
        movzx   eax, word [BOOT.y_res]; Y max
53
 
57
        cmp     eax, MAX_SCREEN_HEIGHT
54
        movzx   eax, word [BOOT.y_res]; Y max
58
        ja      $
55
        mov     [_display.height], eax
59
        mov     [_display.height], eax
56
        mov     [ebp+FRB.height], eax
60
        mov     [ebp+FRB.height], eax
57
        mov     [display_height_standard], eax
61
        mov     [display_height_standard], eax