Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Starman01 on August 29, 2006, 12:40:30 pm

Title: Mousepointer missing in Fred-Debug builds
Post by: Starman01 on August 29, 2006, 12:40:30 pm
Hey,

I have a strange problem with the fred debug builds, I'm not sure when it started, but it's been there for quite some time (and can't be related by a bad OS, I have a rather new install and it still happens just like in my old one).

When I launch a debug build, everything works fine, except that I can't see my mousepointer anymore. It's still there in windows, when I move it on the taskbar it's there again, just missing in fred.

Anyone familiar with that and can give me a hand ?

I start Fred with the "-fredhtl" enabled

Thanks :)
Title: Re: Mousepointer missing in Fred-Debug builds
Post by: karajorma on August 29, 2006, 01:25:08 pm
That one is already in Mantis.


And is bloody annoying.
Title: Re: Mousepointer missing in Fred-Debug builds
Post by: Starman01 on August 29, 2006, 01:35:34 pm
And is bloody annoying.

Indeed :) But now I know what's going on, thanks for the info
Title: Re: Mousepointer missing in Fred-Debug builds
Post by: taylor on August 29, 2006, 01:37:26 pm
I've looked at the problem but didn't make much headway with it.  Not being a Windows user, hacking on FRED is a rather annoying, time consuming and painful experience for me.  Unless I can find/fix a FRED issue pretty quickly I tend to just give up.  I do plan on taking another look at this at some point during the week though, there is still one thing that I haven't tried yet.
Title: Re: Mousepointer missing in Fred-Debug builds
Post by: karajorma on August 29, 2006, 01:39:41 pm
Give me a shout if you can't find it Taylor. It will take me longer to figure it out no doubt but I have more of a vested interest in solving it.

IIRC it only seems to disappear if an error or warning pops up though. So that's just one more reason to fix all those errors and warnings in the first place.
Title: Re: Mousepointer missing in Fred-Debug builds
Post by: taylor on August 29, 2006, 02:14:25 pm
My thought was that it's a SetCursor() related issue, perhaps FRED specific (something MFC related) or maybe some regular OpenGL cursor setting bug.  I'm not sure of when this started though so it's a bit hard for me to guess if it's a general OpenGL code thing or not.  If so then it would have to have been an issue for most of this year, but not last year (sicne my changes are newer than that).

If SetCursor() has a NULL value passed to it then the cursor will disappear, and it's possible that it just isn't getting turned back on.  I think that there is an OnSetCursor MFC call in fredview.cpp somewhere (there should be anyway) so a trace through that, and maybe a little playing around for the sake of testing, may turn something up.  It may just rule something out, but it's worth a look anyway.  That's where I was going to start back in my search for this problem.
Title: Re: Mousepointer missing in Fred-Debug builds
Post by: CP5670 on August 29, 2006, 02:32:18 pm
This has been around for a long time. I think it dates back to when HTL was added into FRED2, or possibly the OGL renderer itself.