Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with SDL_RenderText_Solid_Wrapped only with SDL3 #431

Open
CorruptVoidSoul opened this issue Nov 21, 2024 · 0 comments
Open

Issues with SDL_RenderText_Solid_Wrapped only with SDL3 #431

CorruptVoidSoul opened this issue Nov 21, 2024 · 0 comments

Comments

@CorruptVoidSoul
Copy link

There are two problems, one, SDL3_ttf doesn't wrap on newline characters, while SDL2_ttf does, two, on Windows, there's a font conversion error and the GDB backtrace told me to report this as a bug

The function is called via a wrapper

SDL_Surface* rendertext(TTF_Font* font, char* text, SDL_Color color)
{
	#ifdef SDL2
	return TTF_RenderText_Solid_Wrapped(font, text, color, 0);
	#endif
	#ifdef SDL3
	return TTF_RenderText_Solid_Wrapped(font, text, strlen(text), color, 0);
	#endif
}

oh hecc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant