Make window icon const and fix naming convention

Co-authored-by: Rodrigo Locatti <reinuseslisp@airmail.cc>
This commit is contained in:
pineappleEA
2021-01-16 13:00:14 -06:00
committed by GitHub
parent 2ff675fa88
commit c6fd95cddd

View File

@@ -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);