Subversion Repositories Kolibri OS

Rev

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

Rev 3999 Rev 5154
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2014. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 3999 $
8
$Revision: 5154 $
9
 
9
 
10
struc VBE_VGAInfo {
10
struc VBE_VGAInfo {
11
  .VESASignature          dd ?    ; char
11
  .VESASignature          dd ?    ; char
Line 216... Line 216...
216
        test    [es:mi.ModeAttributes], 00010000b  ;picture ?
216
        test    [es:mi.ModeAttributes], 00010000b  ;picture ?
217
        jz      @f
217
        jz      @f
218
        test    [es:mi.ModeAttributes], 10000000b  ;LFB ?
218
        test    [es:mi.ModeAttributes], 10000000b  ;LFB ?
219
        jz      @f
219
        jz      @f
Line 220... Line 220...
220
 
220
 
221
        cmp     [es:mi.BitsPerPixel], 24   ;It show only videomodes to have support 24 and 32 bpp
221
        cmp     [es:mi.BitsPerPixel], 16   ;List only supported videomodes (16, 24 and 32 bpp)
Line -... Line 222...
-
 
222
        jb      @f
222
        jb      @f
223
 
223
 
224
; 16 bpp might actually be 15 bpp
224
;        cmp     [es:mi.BitsPerPixel],16
225
        cmp     [es:mi.BitsPerPixel], 16 
225
;        jne     .l0
226
        jne     .l0
226
;        cmp     [es:mi.GreenMaskSize],5
227
        cmp     [es:mi.GreenMaskSize], 5
-
 
228
        jne     .l0
Line 227... Line 229...
227
;        jne     .l0
229
;        mov     [es:mi.BitsPerPixel],15
228
;        mov     [es:mi.BitsPerPixel],15
230
        jmp     @f                         ; 15 bpp isnt supported ATM
229
 
231