inches of a monitor
Posted: Sun Sep 11, 2005 8:19 am
is there a way to know the inches of a monitor?
maybe an interrupt or something?
maybe an interrupt or something?
Discuss QBasic, Freebasic, QB64 and more
http://petesqbsite.com/phpBB3/
yep, sadly i think you are right.Antoni wrote:...so probably it will not work...
Code: Select all
RegsX.AX = &H1130
RegsX.BX = &H0
InterruptX &H10, RegsX, RegsX
VideoLines = (RegsX.DX AND 255) + 1
RegsX.AX = &HF00
InterruptX &H10, RegsX, RegsX
VideoCols = (RegsX.AX AND 65280) / 256
PRINT VideoLines / pixelsperinch; " "; VideoCols / pixelsperinch
Therefore, all those functions tell you is what your current <b>text</b> dimensions are, for example, 80 x 25. Besides, pixels/inch is kinda what he wants to find automatically.????????????????????????????????????????????????????????????????????????????
Int 10H [EGA] [MCGA] [VGA]
Function 11H (17) Subfunction 30H (48)
Get font information
????????????????????????????????????????????????????????????????????????????
Returns a pointer to the character definition table for a font and the
points (bytes per character) and rows for that font.
Call with:
AH = 11H
AL = 30H
BH = font code
00H = current Int 1FH contents
01H = current Int 43H contents
02H = ROM 8-by-14 font (EGA, VGA only)
03H = ROM 8-by-8 font (characters 00H?7FH)
04H = ROM 8-by-8 font (characters 80H?FFH)
05H = ROM alternate 9-by-14 font (EGA, VGA only)
06H = ROM 8-by-16 font (MCGA, VGA only)
07H = ROM alternate 9-by-16 font (VGA only)
Returns:
CX = points (bytes per character)
DL = rows (character rows on screen - 1)
ES:BP = segment:offset of font table
????????????????????????????????????????????????????????????????????????????
Int 10H [MDA] [CGA] [PCjr] [EGA] [MCGA] [VGA]
Function 0FH (15)
Get video mode
????????????????????????????????????????????????????????????????????????????
Obtains the current display mode of the active video controller.
Call with:
AH = 0FH
Returns:
AH = number of character columns on screen
AL = display mode (see Int 10H Function 00H)
BH = active display page
Note:
? This function can be called to obtain the screen width before clearing
the screen with Int 10H Functions 06H or 07H.