Author Topic: Solarus engine port to GCW Zero  (Read 21114 times)

0 Members and 1 Guest are viewing this topic.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1193
    • View Profile
Re: Solarus engine port to GCW Zero
« Reply #15 on: May 07, 2014, 02:25:16 PM »
Hi,
Wow that was fast :)
Which exact version of SDL2 is used? SDL 2.0.0 is known to be buggy, and SDL 2.0.1 works fine on PCs.

Are you in fullscreen when you have the bug?
By default, in windowed mode, the "normal" video mode uses a window size of 640x320 indeed. But this should not impact fullscreen.

Can you try this patch: https://github.com/christopho/solarus/commit/5ffb8333634a4623b35c240bfa116ca79eee1109
This is a commit that vlag did to fix a bug similar to what you describe. (I reverted it for now though because it introduced other problems.).

Shin-NiL
  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Shin-NiL Personal Page
Re: Solarus engine port to GCW Zero
« Reply #16 on: May 07, 2014, 02:55:04 PM »
Thanks for the fast reply, Christopho ;D

It's SDL 2.0.3. I've just used windowed mode, which is the default. I'll give a new try using fullscreen as soon as I get my device in hands tonight.

Thanks for the tips!

EDIT: it worked on fullscreen  ;)
« Last Edit: May 07, 2014, 11:10:03 PM by Shin-NiL »

Shin-NiL
  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Shin-NiL Personal Page
Re: Solarus engine port to GCW Zero
« Reply #17 on: July 11, 2014, 03:49:52 AM »
Hi Christopho!

I'm testing a pre-release of the new GCW-Zero firmware that seems to be working well with SDL2 :)
My question is, what's the best way to fix/force fullscreen mode for that device?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1193
    • View Profile
Re: Solarus engine port to GCW Zero
« Reply #18 on: July 11, 2014, 07:56:20 AM »
Hi,
This is good news!

I just opened an issue to force fullscreen mode at compilation time, because this is not currently possible:
https://github.com/christopho/solarus/issues/560

Shin-NiL
  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Shin-NiL Personal Page
Re: Solarus engine port to GCW Zero
« Reply #19 on: July 11, 2014, 12:26:42 PM »
Thanks!
I don't know if due SDL2, LuaJIT or both, but now Solarus is running smoother than ever before.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1193
    • View Profile
Re: Solarus engine port to GCW Zero
« Reply #20 on: July 28, 2014, 10:49:57 AM »
Shin-NIL: is everything working? Did you make the updated package? I would like to upload it to the website. Thanks

Shin-NiL
  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Shin-NiL Personal Page
Re: Solarus engine port to GCW Zero
« Reply #21 on: July 28, 2014, 01:24:04 PM »
Yep, it's working fine forcing fullscreen mode.
I'm still waiting for the new GCW-Zero firmware public release though.

Shin-NiL
  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Shin-NiL Personal Page
Re: Solarus engine port to GCW Zero
« Reply #22 on: August 23, 2014, 01:31:39 AM »
Hello again Christopho!
Good news, the new GCW-Zero firmware with proper SDL2 support was released :D
I've compiled solarus 1.3, but I'm still with the fullscreen problem, any tips or workaround I can use?

Thanks!

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1193
    • View Profile
Re: Solarus engine port to GCW Zero
« Reply #23 on: August 23, 2014, 06:30:33 AM »
Not yet. You can do the change you suggested in a previous post in Video.cpp for now.

Shin-NiL
  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Shin-NiL Personal Page
Re: Solarus engine port to GCW Zero
« Reply #24 on: September 01, 2014, 11:26:49 PM »
The guys from dingoonity have been testing the 1.3 build last days, so I think it's ok.
Here's the binaries:
http://www.mediafire.com/download/z2mx9xum67nnnse/solarus.opk (Solarus OPK)
http://www.mediafire.com/download/0v2ksxfj035uapj/data.solarus.zip (ZSDX)
http://www.mediafire.com/download/mpzwh42a3yt9o4p/data.solarus.zip (ZSXD)

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1193
    • View Profile
Re: Solarus engine port to GCW Zero
« Reply #25 on: September 05, 2014, 09:21:57 AM »
Thanks! Great work! I will update the download page.

Question about future releases: can you compile with C++11 on GCW-Zero? (and other devices?)
Because we are working in a separate branch with C++11, improving the quality of the code. I am not sure yet of when I can merge this work into master, it essentially depends on how C++11-compilant compilers are.

Shin-NiL
  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Shin-NiL Personal Page
Re: Solarus engine port to GCW Zero
« Reply #26 on: September 06, 2014, 01:09:53 AM »
I'm not sure, but I think it supports C++11 as the latest toolchain is using gcc 4.9.1.

Thanks again ;D

fosamax
  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Solarus engine port to GCW Zero
« Reply #27 on: June 20, 2015, 10:30:16 AM »
Sorry for posting in an old thread but i thought it was better than starting a new post.

Shin-Nil hasn't breen active on solarus or dingoonity forums for quite a while now so I was asking myself if you could help me with updating solarus engine on the GCW Zero.

I have zero experience in compiling (without speaking about cross compiling) but have access to a pc dual booting Win7/linux mint.

It should also be noted that lately a GCW simulator was built so you can run native applications for the GCW Zero via QEMU on a computer.

http://www.gcw-zero.com/news.php?id=13
We'd like to announce a new column, written by Dmitry Smagin: "Running GCW Zero applications with QEMU". Now you can try OpenDingux on your computer!

Unfortunately, I doesn't support SDL2 ATM.

I also made little changes to the ZSDX to better reflect GCW zero layout but it needs a little polishing.
Thanks for any help.