mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-22 19:06:15 +08:00
Display game icon (icon0.png) in window title bar (#124)
This commit is contained in:
@@ -1138,6 +1138,12 @@ internal static unsafe class VulkanVideoPresenter
|
||||
|
||||
private void Initialize()
|
||||
{
|
||||
if (PngSplashLoader.TryLoadIcon(out var iconPixels, out var iconWidth, out var iconHeight))
|
||||
{
|
||||
var icon = new RawImage((int)iconWidth, (int)iconHeight, iconPixels);
|
||||
_window.SetWindowIcon(ref icon);
|
||||
}
|
||||
|
||||
WaitForRenderDocAttachIfRequested();
|
||||
_vk = Vk.GetApi();
|
||||
CreateInstance();
|
||||
|
||||
Reference in New Issue
Block a user