Qbasicnews.com

Full Version: corrupt window using lillo's lib
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
in 13h, windowed, i get this always -
[Image: windowerror.gif]
it's not my program, and it's fine in fullscreen.
I've had the same problem with some DirectDraw applications, where windowed surfaces don't get redrawn properly.

I don't know what the problem is, or how to solve it, a reboot solves it for me.
Half of the window is crap - looks like a problem with assuming desktop color depth or something... what bitdepth is your machine using? (8/16/24/32 bpp?) although then I don't know why the colors would be right for the rest of the gfx...
800*600*24
reboot doesn't solve my troubles.. another thing i recently noticed is there are times when 'screen 13' doesn't initialize. it stays in screen 0... if i run it a few times, it works. could be low memory and i need a reboot ... i don't know.
Well, I don't know if this would help, but you might want to change your desktop color depth to 16 or 32. That 3D demo that I made ran about 5x faster for Vic after he recompiled it in 16 bit. :???:

It might be the version of DirectX that your running too. It might even be your video card's driver.
Nevaar use the deadly 24 bit. :*)
If supported you should stick with 32bit, it's fast and you can do some nifty tricks using alpha channels directly.
most gfx cards support either 32 bpp or 24 bpp, not both

24 bpp seems to be going out of style - most new cards I've seen have 32 bpp

probably lillo never tested the 24-bpp screen updater because of lack of proper hardware Smile
nVidia, GeForce 2 GTS from.. old... is what i have.. 32bit works just fine=)
Are you clearing the screen memory pointer and drawing on the whole surface? That is artifacts in a screen surface that has not been cleared it's just crap left over in the memory section. DDraw won't clear a memory surface initially you have to do it manually when you get a ptr to it. If you are drawing on the whole surface and clearing it than I have no idea why it is doing that :-)
Pages: 1 2