Make window icon const and fix naming convention
Co-authored-by: Rodrigo Locatti <reinuseslisp@airmail.cc>
This commit is contained in:
@@ -196,7 +196,7 @@ void EmuWindow_SDL2::WaitEvent() {
|
||||
|
||||
void EmuWindow_SDL2::SetWindowIcon(){
|
||||
SDL_RWops* yuzu_icon_stream = SDL_RWFromMem((void*) yuzu_icon, yuzu_icon_size);
|
||||
SDL_Surface* windowIcon = SDL_LoadBMP_RW(yuzu_icon_stream, 1);
|
||||
SDL_Surface* const window_icon = SDL_LoadBMP_RW(yuzu_icon_stream, 1);
|
||||
// The icon is attached to the window pointer
|
||||
SDL_SetWindowIcon(render_window, windowIcon);
|
||||
SDL_FreeSurface(windowIcon);
|
||||
|
||||
Reference in New Issue
Block a user