Added window icon
Uses a fixed path for now: data/amiberry.png
This commit is contained in:
parent
44e10b5357
commit
aa5c00bbaa
1 changed files with 9 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
|||
#include "amiberry_gfx.h"
|
||||
|
||||
#include <png.h>
|
||||
#include <SDL_image.h>
|
||||
|
||||
|
||||
#include "clipboard.h"
|
||||
#include "devices.h"
|
||||
|
@ -409,6 +411,13 @@ int graphics_setup(void)
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
auto* const icon_surface = IMG_Load("data/amiberry.png");
|
||||
if (icon_surface != nullptr)
|
||||
{
|
||||
SDL_SetWindowIcon(sdl_window, icon_surface);
|
||||
SDL_FreeSurface(icon_surface);
|
||||
}
|
||||
|
||||
if (renderer == nullptr)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue