forked from mia/Aegisub
Compare commits
1 commit
mia
...
cherry-pic
Author | SHA1 | Date | |
---|---|---|---|
|
51ec239770 |
1 changed files with 8 additions and 2 deletions
|
@ -214,9 +214,15 @@ void AddFullScreenButton(wxWindow *) { }
|
||||||
void SetFloatOnParent(wxWindow *) { }
|
void SetFloatOnParent(wxWindow *) { }
|
||||||
|
|
||||||
// OS X implementation in retina_helper.mm
|
// OS X implementation in retina_helper.mm
|
||||||
RetinaHelper::RetinaHelper(wxWindow *) { }
|
RetinaHelper::RetinaHelper(wxWindow* w) { window = w; }
|
||||||
RetinaHelper::~RetinaHelper() { }
|
RetinaHelper::~RetinaHelper() { }
|
||||||
int RetinaHelper::GetScaleFactor() const { return 1; }
|
int RetinaHelper::GetScaleFactor() const {
|
||||||
|
#ifdef __WXGTK__
|
||||||
|
return int(window->GetContentScaleFactor());
|
||||||
|
#else
|
||||||
|
return 1;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
// OS X implementation in scintilla_ime.mm
|
// OS X implementation in scintilla_ime.mm
|
||||||
namespace osx { namespace ime {
|
namespace osx { namespace ime {
|
||||||
|
|
Loading…
Reference in a new issue