riscos: support creating windows with the SDL_NOFRAME flag set SDL-1.2
authorCameron Cawley <ccawley2011@gmail.com>
Mon, 18 Nov 2019 21:58:36 +0000
branchSDL-1.2
changeset 135299341324b4c61
parent 13478 9ff015209d35
riscos: support creating windows with the SDL_NOFRAME flag set
README.RISCOS
WhatsNew
docs.html
src/video/riscos/SDL_wimpvideo.c
     1.1 --- a/README.RISCOS	Mon Feb 03 21:46:09 2020 +0000
     1.2 +++ b/README.RISCOS	Mon Nov 18 21:58:36 2019 +0000
     1.3 @@ -99,7 +99,7 @@
     1.4  SDL_SetVideoMode
     1.5    On RISC OS a fullscreen mode directly accesses the screen. This can be modified by the environmental variable (SDL$<appname>$BackBuffer) or by using the SDL_SWSURFACE flag to write to an offscreen buffer that is updated using SDL_UpdateRects.
     1.6    Open GL is not supported so SDL_OPENGL and SDL_OPENGLBLIT flags fail.
     1.7 -  SDL_RESIZEABLE and SDL_NOFRAME flags are not supported.
     1.8 +  SDL_RESIZEABLE flag is not supported.
     1.9  
    1.10  SDL_SetColors
    1.11    In a wimp mode the screen colours are not changed for a hardware palette instead the RISC OS sprite colour mapping is used to get the best matching colours.
     2.1 --- a/WhatsNew	Mon Feb 03 21:46:09 2020 +0000
     2.2 +++ b/WhatsNew	Mon Nov 18 21:58:36 2019 +0000
     2.3 @@ -84,6 +84,7 @@
     2.4  - RISC OS: support Windows and Menu key input.
     2.5  - RISC OS: implement SDL_WM_IconifyWindow()
     2.6  - RISC OS: send SDL_APPACTIVE events when iconizing the window.
     2.7 +- RISC OS: support creating windows with the SDL_NOFRAME flag set.
     2.8  - Configuration: fix library detection selecting wrong lib (bug 2795.)
     2.9  - Configuration: fix detecting dynamic library support on powerpc64le
    2.10    (bug 3481.)
     3.1 --- a/docs.html	Mon Feb 03 21:46:09 2020 +0000
     3.2 +++ b/docs.html	Mon Nov 18 21:58:36 2019 +0000
     3.3 @@ -207,6 +207,9 @@
     3.4    RISC OS: send SDL_APPACTIVE events when iconizing the window.
     3.5  </P>
     3.6  <P>
     3.7 +  RISC OS: support creating windows with the SDL_NOFRAME flag set.
     3.8 +</P>
     3.9 +<P>
    3.10    Configuration: fix library detection selecting wrong lib (bug <a href="https://bugzilla.libsdl.org/show_bug.cgi?id=2795">2795</a>.)
    3.11  </P>
    3.12  <P>
     4.1 --- a/src/video/riscos/SDL_wimpvideo.c	Mon Feb 03 21:46:09 2020 +0000
     4.2 +++ b/src/video/riscos/SDL_wimpvideo.c	Mon Nov 18 21:58:36 2019 +0000
     4.3 @@ -231,8 +231,11 @@
     4.4     window_block[5] = 0;
     4.5     window_block[6] = -1;			  /* Open on top of window stack */
     4.6  
     4.7 -   window_block[7] = 0x85040042;      /* Window flags */
     4.8 -   if (riscos_closeaction != 0) window_block[7] |= 0x2000000;
     4.9 +   window_block[7] = 0x80040042;      /* Window flags */
    4.10 +   if (!(surface->flags & SDL_NOFRAME)) {
    4.11 +      window_block[7] |= 0x5000000;
    4.12 +      if (riscos_closeaction != 0) window_block[7] |= 0x2000000;
    4.13 +   }
    4.14  
    4.15     /* TODO: Take into account surface->flags */
    4.16