|
-
Dec 12th, 2002, 01:27 PM
#1
Thread Starter
New Member
DirectDraw Resolution Problem
I am using directdraw for programming a graphics game, I have 2 characters. I have a problem as when I use resoultionb of 1024 * 768, the game still shows up at 800 * 600, but to make make up for the excess screen there is a white band of flashing screen around the game . So in other words the game screen is reduced and dosent take up the whole screen. Also when I use 800 * 600 resoultion it works fine. 640 * 480 works too but anything greater than 800 *600 dosent work. Anyone know what the problem is?
-
Dec 13th, 2002, 06:38 AM
#2
Addicted Member
Maybe if you showed us the relevant code we could offer some advice.
-
Dec 16th, 2002, 02:19 PM
#3
Ex-Super Mod'rater
Could just be ur PC, but if you can run windows in 1024*768 there shuldn't be a problem. Have you tried this to check its a valid display mode:
VB Code:
Private DModes As DirectDrawEnumModes
Private rModeCount as Long
Private rModes() as string
Dim Temp As DDSURFACEDESC2
Set DModes = DDraw.GetDisplayModesEnum(DDEDM_DEFAULT, Temp)
rModeCount = DModes.GetCount
ReDim rModes(1 To rModeCount)
For i = 1 To rModeCount
DModes.GetItem i, Temp
rModes(i) = CStr(Temp.lWidth) & "x" & CStr(Temp.lHeight) & "*" & CStr(Temp.ddpfPixelFormat.lRGBBitCount)
Next
Hope that will help you.
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|