From c145ef7cef5aa399cbb60fe14c47675f7681fb5e Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Sat, 18 Mar 2023 21:32:12 +0100 Subject: [PATCH] heehee --- source/funkin/editors/ui/UIContextMenu.hx | 7 +++++-- source/native/WinAPI.hx | 2 -- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source/funkin/editors/ui/UIContextMenu.hx b/source/funkin/editors/ui/UIContextMenu.hx index d153cdbb..9190fcd9 100644 --- a/source/funkin/editors/ui/UIContextMenu.hx +++ b/source/funkin/editors/ui/UIContextMenu.hx @@ -50,8 +50,11 @@ typedef UIContextMenuOption = { class UIContextMenuOptionSpr extends UISpliceSprite { public var label:UIText; - public function new(x:Float, y:Float, t:String) { - label = new UIText(20, 2, 0, t); + public var option:UIContextMenuOption; + + public function new(x:Float, y:Float, option:UIContextMenuOption) { + label = new UIText(20, 2, 0, option.label); + this.option = option; super(x, y, label.frameWidth + 22, label.frameHeight + 4, 'editors/ui/button'); members.push(label); diff --git a/source/native/WinAPI.hx b/source/native/WinAPI.hx index 673682cc..a4a46251 100644 --- a/source/native/WinAPI.hx +++ b/source/native/WinAPI.hx @@ -26,7 +26,6 @@ import funkin.windows.WindowsAPI.MessageBoxIcon; #include #include #include -#include #define SAFE_RELEASE(punk) \\ if ((punk) != NULL) \\ @@ -177,7 +176,6 @@ class WinAPI { @:functionCode(' SetProcessDPIAware(); - // SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE); ') public static function registerAsDPICompatible() {} }