Re: Graphics Problems

new topic     » goto parent     » topic index » view thread      » older message » newer message

----- Original Message ----- 
From: "Chris Bensler" <bensler at mail.com>
To: "EUforum" <EUforum at topica.com>

> Have you tried resetting the palette on WM_ACTIVATE?
> 
> Exotica requires you to rebuild custom graphics on WM_ACTIVATE. If not, 
> the video memory buffer is corrupted from other windows, and the custom 
> bitmaps are thrashed.
> I assume, it's a similar situation.
> 
> Chris
> 

Thanks Chris for the reply.!

I had tried resetting the palette initially and it didnt work.
I even tried using a memory DC to hold the window image
and bitblt this back to the hwndDC when the program came
back into focus. The image is there but has an awfull looking 
palette (all green and red and, neither of these colors are in the
the real image).

I have a routine in the code to move the window around
the screen and noticed that when the image looks as it should (colors)
that the image does not drag smoothly but when this (Red &Green)
image comes up, the image can be dragged around smoothly as
it does in 16 bit+ modes.

Im frustrated..... Thanks again, I 'll post the code if anyone would like. 
 
Euman
euman at bellsouth.net

5 2 1 - 1 - n - 5  The Doors

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu