Skip to main content
GameDev.net gamedev.net
🔒 Locked

stange flashes

Started by Tera_Dragon Jun 5, 2004 at 10:13 AM 4 replies 450+ views
Original Post
Tera_Dragon
Tera_Dragon
I''m getting some very strange things happening to my program. I have a button and when I put the mouse over it, it changes color. This worked fine and then I updated some other part of my program, ran it and the button flashed between it''s two textures. I hadn''t done anything to the ogl part of the code and so was stumped. I left it about a day, updated soem other stuff and when I ran it this time it worked. I thought that I must have changed something without realising it. When I finished workin on it for then it was working perfectly, but when I came back to it later the flashing between textures had started again. As I hadn''t even done anything to the code I want to know what is wrong. Could it be that my computer is running slower (more programs) and so you can see the screen refreshing? Please help this has been driving me crazy. Tera_Dragon ____________________________________________________________ Programmers Resource Central
____________________________________________________________Programmers Resource Central
C-Junkie
C-Junkie
flashes what?

white? a different texture? flashes to the correct etxture that its supposed to when you mouseover, then falsehs back the the nonover one but the mouse is still over?
Tera_Dragon
Tera_Dragon
quote:
Original post by C-Junkie
flashes to the correct etxture that its supposed to when you mouseover, then falsehs back the the nonover one but the mouse is still over?


exactly that. First of all it is green, then when the mouse is over it the texture changes to a red one. But it flashes VERY fast between the two. It wasn''t doing this before even though I havn''t changed the code at all.
Tera_Dragon

____________________________________________________________
Programmers Resource Central
____________________________________________________________Programmers Resource Central
Hellsp4wn
Hellsp4wn
or if some other part of your code prosesses mouse input, make sure it doesn''t "steal" it away from the button.

or, you set the hover state on WM_MOUSEMOVE and resets it in some other update function without checking the mouse position.

endless possibilities... isn''t it fun?
=)

Hellsp4wn
-----------

I''m having deja-vu and amnesia at the same time. It''s like I think I''ve forgotten this before.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.