mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[ion] Brand new icon for the Windows simulator (#483)
This commit is contained in:
committed by
GitHub
parent
73017819ac
commit
0a807c3b69
BIN
ion/src/simulator/assets/logoWin.ico
Normal file
BIN
ion/src/simulator/assets/logoWin.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
@@ -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) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <ion/src/simulator/windows/resources_gen.rc>
|
||||
SIMUICON ICON "../assets/logoWin.ico"
|
||||
|
||||
1 VERSIONINFO
|
||||
FILEVERSION 1,0,0,0
|
||||
|
||||
Reference in New Issue
Block a user