diff options
author | 2016-11-14 20:43:40 -0500 | |
---|---|---|
committer | 2016-11-14 20:43:40 -0500 | |
commit | 6b390947c7599b1fbad414cbcb7d9bcdbfe5bb35 (patch) | |
tree | ab7bd8d97010f82a09d0d4cadffaa23bce307dfc | |
parent | 61bcb87960ef5c7e92a295cd96501ee39e6d86c4 (diff) |
UWP: Output verbose to debug plus turn off view scaling (nw)
-rw-r--r-- | src/osd/windows/winmain.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/osd/windows/winmain.cpp b/src/osd/windows/winmain.cpp index d6fde9d2f7a..a2a81fdbd41 100644 --- a/src/osd/windows/winmain.cpp +++ b/src/osd/windows/winmain.cpp @@ -98,9 +98,9 @@ class winuniversal_output_error : public osd_output public: virtual void output_callback(osd_output_channel channel, const char *msg, va_list args) override { + char buffer[2048]; if (channel == OSD_OUTPUT_CHANNEL_ERROR) { - char buffer[1024]; vsnprintf(buffer, ARRAY_LENGTH(buffer), msg, args); std::wstring wcbuffer(osd::text::to_wstring(buffer)); @@ -109,6 +109,15 @@ public: auto dlg = ref new MessageDialog(ref new Platform::String(wcbuffer.data()), ref new Platform::String(wcbuffer.data())); dlg->ShowAsync(); } + else if (channel == OSD_OUTPUT_CHANNEL_VERBOSE) + { + vsnprintf(buffer, ARRAY_LENGTH(buffer), msg, args); + std::wstring wcbuffer = osd::text::to_wstring(buffer); + OutputDebugString(wcbuffer.c_str()); + + // Chain to next anyway + chain_output(channel, msg, args); + } else chain_output(channel, msg, args); } @@ -358,6 +367,8 @@ int main(Platform::Array<Platform::String^>^ args) MameMainApp::MameMainApp() { + // Turn off application view scaling so XBOX gets full screen + Windows::UI::ViewManagement::ApplicationViewScaling::TrySetDisableLayoutScaling(true); } void MameMainApp::Initialize(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView) @@ -628,3 +639,4 @@ static int is_double_click_start(int argc) } #endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + |