mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 15:26:00 +02:00
Added screen DPI awareness
This commit is contained in:
parent
3de10b9d73
commit
9930ae8436
6 changed files with 52 additions and 3 deletions
|
@ -224,6 +224,9 @@ namespace Beefy
|
|||
[StdCall, CLink]
|
||||
static extern void* BFWindow_DeleteMenuItem(void* window, void* item);
|
||||
|
||||
[StdCall, CLink]
|
||||
static extern int BFWindow_GetDPI(void* window);
|
||||
|
||||
public static BFWindow GetBFWindow(void* window)
|
||||
{
|
||||
return sWindowDictionary[(int)window];
|
||||
|
@ -555,6 +558,11 @@ namespace Beefy
|
|||
//TODO: REMOVE
|
||||
//Debug.WriteLine("LostFocus {0}", mTitle);
|
||||
}
|
||||
|
||||
public virtual int GetDPI()
|
||||
{
|
||||
return BFWindow_GetDPI(mNativeWindow);
|
||||
}
|
||||
|
||||
public virtual void KeyChar(char32 theChar)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue