Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Direct Draw Surface larger than the screen?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 df14   Members   

122
Like
Likes
Like

Posted 29 October 1999 - 06:14 AM

If I want to blt a DirectDrawSurface larger than the screen I get a RuntimeError.

Thanx
df14


#2 Gandalf   Members   

122
Like
Likes
Like

Posted 28 October 1999 - 02:37 AM

Maybe your hardware is inadequate. Not all display drivers support larger surfaces in system memory. Or your version of DirectX can´t support it (required DirectX 5.0 or higher).

Gandalf.



#3 Aldacron   GDNet+   

4489
Like
Likes
Like

Posted 29 October 1999 - 05:34 AM

If the drivers didn't support wider surfaces then they wouldn't be able to be created, right?

Try the following code, where lpdd is your main direct draw object:

code:

DDCAPS driver_caps;

lpdd->GetCaps (&driver_caps,NULL);
if (driver_caps.dwCaps2 & DDCAPS2_WIDESURFACES)
{
// Now you know you can handle wide surfaces.
// so do something here to indicate it
}



If your driver can handle wide surfaces, it maybe that you need to set a Clipper if you're trying to blit the whole surface, or just blit a portion of the surface instead. That's a guess, though.

[This message has been edited by Aldacron (edited October 29, 1999).]


#4 INVERSED   Members   

172
Like
Likes
Like

Posted 29 October 1999 - 06:14 AM

The same thing happened to me. I could create the wide surfaces, but if I tried to blit it to the main surface my program would crash. I was just blitting a small square of it too.

------------------
--Orion McClelland





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.