DirectDraw Overlays

Started by
-1 comments, last by xycsoscyx 18 years, 7 months ago
I have a question about DirectDraw Overlays that I pretty much need to confirm, but can't find much info anywhere. If anyone has some more in depth articles or resources on DirectDraw Overlays, please let me know. The problem is overlays and multiple monitors, the overlay doesn't seem to want to display on the secondary monitors. When I call UpdateOverlay, it returns DDERR_INVALIDRECT every time the rectangle is out of bounds of the primary monitor. I know overlays are hardware things, so are they just limited to the primary display? Can I (ugly hack) handle it myself? As in, do I need to create a DirectDraw device for each monitor seperately and handle things? Would that even work, since I would have to create two overlays, one per monitor (or device rather), and make sure both are updated per frame (not a good thing here), then render both if needed (like if the overlay stradles the screens). That's a really ugly hack, and I'll just stick with plain offscreen surfaces instead, because they work with multiple monitors. Plus, I know there are sharing issues between the monitors, it seems like I'd end up having to create a surface for both monitors, whenever I need one, and have to write to both of these surfaces when it's updated, that's really not what I want to do. Thanks.

This topic is closed to new replies.

Advertisement