Closed distantforest1 closed 2 years ago
Hi @keenfoong, I think the issue is that the second argument should be bytes
type instead of str
, since SDL2 generally expects UTF-8 encoded byte strings for string arguments.
Try the same code again as
sdl2.SDL_SetHint(sdl2.SDL_HINT_RENDER_SCALE_QUALITY, b"2")
and see if that works!
That worked thanks!
What doesn't work? Firstly apologies if I'm doing something wrong here, I'm still new to SDL. I'm attempting to run the SDL_SetHint function as follows:
sdl2.SDL_SetHint(sdl2.SDL_HINT_RENDER_SCALE_QUALITY, "2")
Basing it off the documentation here: https://wiki.libsdl.org/SDL_SetHintHowever I get this error:
Platform (if relevant):
What am I doing wrong here?