Skip to content
#

sdl2

Here are 1,721 public repositories matching this topic...

MyreMylar
MyreMylar commented Jun 28, 2020

Currently the toggle_fullscreen() contain these lines:

This function only works under the UNIX X11 video driver. For most situations it is better to call pygame.display.set_mode() with new display flags.

This is no longer accurate as the function works on windows for sure (tested) and looking at the code likely works on mac and with other display drivers on linux too. I believe it is also

zx64
zx64 commented Dec 1, 2018

From the comment in SDL_filesystem.h:
Please call SDL_free() on the pointer when you are done with it

When building the project with MSVC, I ran into some debug heap asserts early into the program startup.
The culprit appears to be the code in m_config.c that does free(prefdir) as changing these to SDL_free(prefdir) resolved the issue.

I'm not sure what to do about `GetDefaultConfi

duncanspumpkin
duncanspumpkin commented May 26, 2020

The majority of the windows with tabs have a function for left aligning the none disabled tabs. There should be one function that does this rather than the variety of different ones that we have at the moment.

The function will need to know the first and last tab but that should be about it. The build vehicle window likely is a bit special and consideration on if it can use the general function

cxong
cxong commented Jun 14, 2016

Via playtesting, the compass arrows (#29) were ignored, likely because they are right at the edge and outside the player's attention. If they are moved slightly inwards, they may become more noticeable.

Games that have these arrows also tend to draw them closer to the player rather than near the edge; e.g.

  • GTA 1 & 2
  • Fire Fight
  • Crazy Taxi

Improve this page

Add a description, image, and links to the sdl2 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the sdl2 topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.