|
-
Feb 5th, 2002, 10:25 AM
#1
Thread Starter
Addicted Member
DirectX surface change?
I am using DDraw and I use CreateSurfaceFromResource method to load a bitmap from a resource file. Later in the application, I load another bitmap over the same surface. When I do this, the second image gets warped to fit the width and height of the first image.
Is there a way that I can reset surface so that my second bitmap isn't streched to the same dimensions as the first image?
thanks,
shurijo
-
Feb 5th, 2002, 02:41 PM
#2
Hyperactive Member
You have to change the width and height of the surface when you blit the new bitmap onto it.
[vbcode]
' comment
Rem remark
[/vbcode]
-
Feb 5th, 2002, 03:52 PM
#3
Good Ol' Platypus
Alternatively you could destroy it and then create it, it may avoid a memory leak but then again it may create one. Be on your guard.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Feb 5th, 2002, 07:08 PM
#4
New Member
before you using the secound bitmap type
type
set surface = nothing
then set the Ddsd valus
then set the rect
then blt fast the surface
EGY_Tiger
will stay
EGY_Tiger 4 ever
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
|