Hi
I have odd situation.
I test my program on computers with new 3dfx(16mb video memory) video adapter.
And ,when video mode is modyfy - DDT is lose (don't work with
new video mode) ??? .But DIB section is worked correctly !
On other computers - program working good...
I use this SUB for change video mode.
I want to know - WHAT IS IT?
Thank,
Regard,
V.Shualkov
=====================================================
SUB SetVideoMode(BYVAL SETMODE AS LONG) 'VIDEOMODE
LOCAL dm AS DEVMODE
IF SETMODE=0 THEN
dm.dmPelsWidth = 1024
dm.dmPelsHeight = 768
' dm.dmBitsPerPel = 32
ELSE
dm.dmPelsWidth = 800
dm.dmPelsHeight = 600
' dm.dmBitsPerPel = 32
END IF
dm.dmSize = LEN(dm)
dm.dmFields = %DM_PELSWIDTH + %DM_PELSHEIGHT' + %DM_BITSPERPEL
ChangeDisplaySettings dm,%CDS_UPDATEREGISTRY
END SUB
I have odd situation.
I test my program on computers with new 3dfx(16mb video memory) video adapter.
And ,when video mode is modyfy - DDT is lose (don't work with
new video mode) ??? .But DIB section is worked correctly !
On other computers - program working good...
I use this SUB for change video mode.
I want to know - WHAT IS IT?
Thank,
Regard,
V.Shualkov
=====================================================
SUB SetVideoMode(BYVAL SETMODE AS LONG) 'VIDEOMODE
LOCAL dm AS DEVMODE
IF SETMODE=0 THEN
dm.dmPelsWidth = 1024
dm.dmPelsHeight = 768
' dm.dmBitsPerPel = 32
ELSE
dm.dmPelsWidth = 800
dm.dmPelsHeight = 600
' dm.dmBitsPerPel = 32
END IF
dm.dmSize = LEN(dm)
dm.dmFields = %DM_PELSWIDTH + %DM_PELSHEIGHT' + %DM_BITSPERPEL
ChangeDisplaySettings dm,%CDS_UPDATEREGISTRY
END SUB
Comment