MONITOR GEOMETRY

Programming, for all ages and all languages.
Locked
0088
Posts: 2
Joined: Sun Jun 03, 2012 4:08 am

MONITOR GEOMETRY

Post by 0088 »

I WANT TO GET THE HORIZONTAL AND VERTICAL ACTIVE DISPLAY AND THE BITS PER PIXEL USING THE INT 10 FUNCTION 4F04 I TRIED TO USE THE FUNCTION 4F04 TO GET SVGA STATE BUT I DON'T KNOW WHAT ARE RETUNED IN THE BUFFERS AT ES:BX THE ONLY THAT I KNOW IS THAT FOR EACH DISPLAY ADAPTER THE 4F04 RETURNS DIFFERENT BUFFERS. WHAT VALUES ARE RETURNED IN THE BUFFERS RETURNED BY THIS FUNCTION?
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: MONITOR GEOMETRY

Post by Solar »

It's the number of continuous 64 byte blocks needed for saving / restoring video state, says Ralf Brown. Not related to monitor geometry at all.
Every good solution is obvious once you've found it.
0088
Posts: 2
Joined: Sun Jun 03, 2012 4:08 am

Re: MONITOR GEOMETRY

Post by 0088 »

Solar wrote:It's the number of continuous 64 byte blocks needed for saving / restoring video state, says Ralf Brown. Not related to monitor geometry at all.
NO YOU DON'T. I ALREADY HAVE THE NUMBER OF 64 BYTE BLOCKS TO SAVE SVGA STATE. WHAT I NEED TO KNOW IS:
WHAT ARE AT BUFFER RETURNED BY SAVE SVGA STATE 4F04?
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: MONITOR GEOMETRY

Post by Brendan »

Hi,
0088 wrote:
Solar wrote:It's the number of continuous 64 byte blocks needed for saving / restoring video state, says Ralf Brown. Not related to monitor geometry at all.
NO YOU DON'T. I ALREADY HAVE THE NUMBER OF 64 BYTE BLOCKS TO SAVE SVGA STATE. WHAT I NEED TO KNOW IS:
WHAT ARE AT BUFFER RETURNED BY SAVE SVGA STATE 4F04?
There's no way to tell what any specific video card might store in those 64 KiB blocks (it's likely to be different for different video cards).

The active display size and colour depth is determined by the video mode your code set last. If you didn't set a video mode, then set a video mode.


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Locked