nanogui: Nano-X For PSP


Previous by date: 12 Mar 2010 05:16:04 -0000 Re: Nano-X For PSP, Greg Haerr
Next by date: 12 Mar 2010 05:16:04 -0000 Re: [FIX] add alpha channel into GdDrawImage software handling, Greg Haerr
Previous in thread: 12 Mar 2010 05:16:04 -0000 Re: Nano-X For PSP, Greg Haerr
Next in thread: 12 Mar 2010 05:16:04 -0000 Re: Nano-X For PSP, Greg Haerr

Subject: Re: Re: Re: [nanogui] Re: Nano-X For PSP
From: "Greg Haerr" ####@####.####
Date: 12 Mar 2010 05:16:04 -0000
Message-Id: <0d1001cac1a3$1a594b10$6564a8c0@winXP>

> With your attached mdemo.c:
> the picture will follow the mouse to move.
> But the timer is still not work.

Ok - we know for sure that timers aren't working
for PSP for nano-X or mwin.  I have looked
at the code for src/nanox/srvmain.c::GsSelect()
and src/mwin/winmain.c::MwSelect() and can
see that they do NOT call the required
GdGetNextTimeout() and GdTimeout() functions,
so this was never implemented.

Now test mdemo.c with CONTROLS 1 and
TIMERDEMO 0.  Does it crash?  If not,
then we are fine, we just need to finish timers.
If it crashes, then this is what the first version
did, where the WM_TIMER callback is failing
and crashing.  (It may be just hanging, since
the timer never fires)


> x86 linux is fine for both.

Yes I have tested that.

Regards,

Greg





===== Original Message =====

--------------------------------------------------------------------- 
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.#### -

I have cleaned up mdemo.c for your debugging the
PSP port. I have attached the new version from git.
It defaults to the older 3d graph demo, with timer.
This is set with:
#define GRAPH3D 1

If PSP has floating point, it should run as-is.

If it doesn't work, change the following:

#define TIMERDEMO 0

This will turn off the timer support. This may be
our PSP port problem.




You can also go back to the original mdemo.c
showing win32 controls by doing:

#define GRAPH3D 0
#define CONTROLS 1

Then try running this with TIMERDEMO set to 0.
(this should work)

Then try running this with TIMEREMO set to 1.
If this fails, we know it's in the timer code,
which is in:

src/mwin/winmain.c::MsSelect()

Depending on which modes mdemo works or
fails, we should know the problem. Since
nxclock doesn't update, it could be timer.

Regards,

Greg





---------------------------------------
购物券大派送! 


Previous by date: 12 Mar 2010 05:16:04 -0000 Re: Nano-X For PSP, Greg Haerr
Next by date: 12 Mar 2010 05:16:04 -0000 Re: [FIX] add alpha channel into GdDrawImage software handling, Greg Haerr
Previous in thread: 12 Mar 2010 05:16:04 -0000 Re: Nano-X For PSP, Greg Haerr
Next in thread: 12 Mar 2010 05:16:04 -0000 Re: Nano-X For PSP, Greg Haerr


Powered by ezmlm-browse 0.20.