| Summary: | Patch FullScreen on MIR / Ubuntu Touch | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sylvain <sylvain.becker> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | brandon.schaefer, brandontschaefer, sylvain.becker |
| Version: | 2.0.3 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Attachments: |
patch
patch compatible with ubuntu 14.04 |
||
Patch looks good to me. After double-checking, the lines about "mir_wait_for" should be removed, because it won't compile in ubuntu 14.04. (the file name is different). And using mir_wait_for does not seem to be mandatory. so ignore from SDL_mirdyn.h: ... +#include <mir_toolkit/mir_wait.h> ... +SDL_MIR_SYM(void,mir_wait_for,(MirWaitHandle *wait_handle)) ... Yeah no changes for 14.10 should go into SDL2 trunk atm. As the headers have changed, so we dont want to mess up SDL2 for 14.04. Yes it makes sense. The patch should work with ubuntu 14.04 provided you skip the (not needed) part about "mir_wait_for" (the two lines above). Created attachment 1898 [details]
patch compatible with ubuntu 14.04
I have updated the patch to compile under ubuntu 14.04
Cool, thank you for the patch! Ill want to double check everything on 14.04 compiles. Otherwise the code it self looks good. (My mistake using the wrong function there!) No problem :) I think the real issue underneath, is that the compiler should have warned about wrong type usage. In that case: "MirSurfaceState" VS "MirSurfaceType". Maybe an additional great patch, would to change the declaration of function pointers in "SDL_mirdyn.h" to preserve the original c types/enums. So that compiler can warn about mismatch types. Yeah onces the MirTypes start getting better defined we should hopefully catch these errors a bit sooner. Thanks confirmed compiles, and fixes those issues! |
Created attachment 1896 [details] patch Hi, The platform is Ubuntu Touch + MIR (on ARM tablet/phones). It probably fix also some fullscreen issue on Ubuntu x86 + MIR ! This is a small patch to correct a typo and add a few functions : - The function "MIR_mir_surface_set_state" should use instead of the "_type". (otherwise the fullscreen is not applied !) - According to the documentation, mir_wait_for() should be used after the calls of mir_surface_set_state/type. It seems to work without that. - Fix typo int-MirBool Thanks, Sylvain