Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

HX/OGLTEST error (Users)

posted by Japheth Homepage, Germany (South), 25.05.2011, 07:06

> I do know what 4F01h does though -- you set up a data buffer,
> feed the call a video-mode number, and it returns data about that
> mode in the buffer. Now, me determining if the data is
> *reasonable*, well, that's a whole 'nuther story....

I know what VESA32 does, so I might be able to help.

I guess you're calling ogltest from a text mode. OTOH, the crash dump tells me that VESA32 erroneously thinks it has access to the frame buffer.

So the test is to call vesa int 10h, ax=4F01h, current mode is TEXT (video mode 3) and then see if

- the call succeeds
- field MemoryModel (offset 1Bh in structure below) is zero.


SVGAINFO struct
ModeAttributes dw ?             ;+00
WinAAttributes db ?             ;+02
WinBAttributes db ?             ;+03
WinGranularity dw ?             ;+04
WinSize        dw ?             ;+06
WinASegment    dw ?             ;+08
WinBSegment    dw ?             ;+0A
WinFuncPtr     dd ?             ;+0C
BytesPerScanLine dw ?   ;+10
;---------------------- rest is optional info (since Version 1.2)
XResolution    dw ?             ;+12
YResolution    dw ?             ;+14
XCharSize      db ?             ;+16
YCharSize      db ?             ;+17
NumberOfPlanes db ?             ;+18
BitsPerPixel   db ?             ;+19
NumberOfBanks  db ?             ;+1A
MemoryModel    db ?             ;+1B
BankSize       db ?             ;+1C
NumberOfImagePages db ?
Reserved       db ?
RedMaskSize        db ?
RedFieldPosition   db ?
GreenMaskSize      db ?
GreenFieldPosition db ?
BlueMaskSize       db ?
BlueFieldPosition  db ?
RsvdMaskSize       db ?
RsvdFieldPosition  db ?
DirectColorModeInfo db ?
PhysBasePtr        dd ?         ;since Version 2.0
OffScreenMemOffset dd ?
OffScreenMemSize   dw ?
Reserved2          db 206 dup (?)
SVGAINFO ends


I also added a missing check in VESA32. When trying to save the vesa state, it always assumed that int 10h, ax=4f01h succeeded (it perhaps might fail for standard VGA text modes on your system).

EDIT: I uploaded a new HXRT217.zip which contains the modified VESA32.DLL.

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum