[ion] Brand new icon for the Windows simulator (#483)

This commit is contained in:
ArtichautCosmique
2021-02-21 15:09:32 +01:00
committed by GitHub
parent 73017819ac
commit 0a807c3b69
3 changed files with 4 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -7,6 +7,8 @@
#include <gdiplus.h>
#include <assert.h>
#define SIMUICON 101
/* Loading images using GDI+
* On Windows, we decompress JPEG images using GDI+ which is widely available.
* Note that this adds an extra runtime dependency (as compared to just SDL),
@@ -14,6 +16,7 @@
HRESULT CreateStreamOnResource(const char * name, LPSTREAM * stream) {
HINSTANCE hInstance = GetModuleHandle(0);
HICON Icon = LoadIcon(hInstance, MAKEINTRESOURCE(SIMUICON));
*stream = nullptr;
HRSRC hC = FindResource(hInstance, name, RT_RCDATA);
if (!hC) {

View File

@@ -1,4 +1,5 @@
#include <ion/src/simulator/windows/resources_gen.rc>
SIMUICON ICON "../assets/logoWin.ico"
1 VERSIONINFO
FILEVERSION 1,0,0,0