I actually have ToggleFullscreen working with GL now as well (at least it works in Giddy 3), but google's SVN server is currently having a wobbly and i can't commit the code... grrrr!
Well, giddy is not "just a port". It is portable, and does use SDL, but it was ~70% developed directly on OS4.x.
But yes, it uses SDL_WM_ToggleFullscreen(), and andrea is working to implement SDL_WM_ToggleFullscreen() in SDL, which is where the fix should be done.
ToggleFullscreen sort of works. If the SDL display was created in windowed mode, you can toggle fullscreen on/off as much as you like and it works. If the display was created fullscreen, it locks the machine up when you toggle.
That kind of bad (about lockup when user try to switch from full-screen mode). Because in general, all sdl apps which we have for now, was created as full-screen.
Maybe it can be debugged and fixed ? (i mean that lockup).
Protrekkr it's plain SDL app (without usage of opengl). The problems with window modes was opengl only (it mean that SDL apps with usage of opengl can't works in window mode before). Plain SDL programms works fine all the time with window/full-screen modes (well, maybe it have some bugs too, but switching works fine).
sh ./configure --enable-pthreads=no --enable-pth=no gmake
Then, from build/.libs i copy LIBSDL-1.2.so, to my sobj:
Reboot, run Giddy, and have window:
Unable to resolve symbol #SDL_Malloc#
and then DSI.
And LIBSDL-1.2.so are big if compared with latest public .so. It have 2.5mb of size (over 700kb of r11). I tryed to buil it on latest SDK+latest aos, etc.. So, what wrong ?:)
On compiling stage (almost at the end) i have tons of strings like that: Quote:
gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.dtors' not in segment gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.data.rel.local' not in segment gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.fixup' not in segment gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.data.rel.ro.local' not in segment gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.data.rel' not in segment gcc:bin/ld: build/.libs/libSDL.la-62.o: warning: allocated section `.data.rel.ro' not in segment
I don't know. I have all the same problems you listed. I kludged the "SDL_malloc" error by reverting SDL_config.h to the SVN version after configuring.
There is also was SDL_free error, when i skip first DSI :) Maybe better if you just can compile .so yourself with latest src and upload for testing ? Anyway its strange why your r11 compile works fine, and 700kb of size, but my are 2.5mb of size and have these errors.
Yep, with reverting SDL_config.h to SVN ones, it build and works. Then i try Giddy3, and when i try to switch to window mode, i have DSI of this kind: Quote:
If i change settings.txt to start in window mode by default, then, for first time it freeze the os4. Then i hardreboot, and try again: then dsi on CreateDisplay: Quote:
kas1e wrote: @afxgroup Thanks for ! Hope to try new build soon.
ps. Btw, Hanz, i re-read your suggestions on amigabounty, and want to ask about "and screen selection is poor". What that mean exactly ?
That suggestion comes from SpotUP, so he should be able to provide more details. Basically, some attempted SDL + GL ports are failing because they can't get a valid screen mode, when the resolutions being requested exist. I have no idea why, but it's a serious shortcoming, so I put it on the list.