News:

Herr Otto Partz says you're all nothing but pipsqueaks!

Main Menu

SDL 3

Started by Matei, November 01, 2025, 09:49:04 AM

Previous topic - Next topic

Matei

Quote from: Matei on November 21, 2025, 11:03:44 PMfullscr=0 - the controls didn't work,

Actually they did but the image doesn't update. Edited file graphics/graph2d.c, lines 276...:

#elif SDLVER==2
  if(RGLOB_initgr==0){printf("display(): Screen not initialized\r\n"); exit(1);}
  if(SDL_UpdateWindowSurface(RGLOB_window)<0){
    printf("%s",SDL_GetError());
    exit(1);
  }
#else

Error:

QuoteWindow surface is invalid, please call SDL_GetWindowSurface() to get a new surface

Which version of xMOn@D do you have? I have 0.18.0.

Matei

https://disenchant.net/tyrquake/

Tyrquake works, but it uses "SDL_CreateRenderer()" instead of "SDL_GetWindowSurface()".

https://wiki.libsdl.org/SDL2/SDL_CreateRenderer

https://gamedev.stackexchange.com/questions/180077/in-sdl-what-is-the-difference-between-using-a-surfaces-and-a-renderer

However, unlike my game, tyrquake with SDL 2 had a very low framerate on this laptop with Fedora 14, although it worked well with X11:

https://www.miniputer.com/Acer/Aspire_3000.html

https://matei.one/gnxfed14.html