Commit Graph

101 Commits

Author SHA1 Message Date
Unknown W. Brackets
f607f41440 Windows: Stop input poll before emu shutdown.
Otherwise, we could crash in the input thread during host deletion.
2017-12-03 19:22:01 -08:00
Henrik Rydgård
6a1fa728d8 Remove Globals.h 2017-08-31 17:15:22 +02:00
Henrik Rydgård
f4cf501cf6 Separate X and Y dpi_scale 2017-08-07 13:37:01 +02:00
Unknown W. Brackets
cc88435b48 Windows: Support multi-display full screen.
For when you have an ultrawide monitor, or I guess even multiple.
2017-07-30 09:14:36 -07:00
Unknown W. Brackets
b9c0f76049 Windows: Avoid input race condition on GPU switch.
The issue is worse if polling controllers (i.e. XInput) is slow, but we
want to stop that thread while we're resetting `host`.
2017-05-20 12:33:28 -07:00
Unknown W. Brackets
793178c106 Windows: Initialize WindowsHost in EmuThread.
This seems like a more appropriate place, and a more appropriate thread,
for it to be initialized on.
2017-05-05 06:53:48 -07:00
LunaMoo
2a60f2e77c Handle alt+tab and drop down menu when mouse is confined and game is running 2017-05-05 02:26:24 +02:00
Unknown W. Brackets
661b2a3aa8 UI: Make GPU events more consistent. 2017-04-27 20:03:50 -07:00
LunaMoo
26006e9d80 Add an option to trap mouse within window/display area. 2017-04-27 16:29:08 +02:00
LunaMoo
26c02478af Mouse Control(Windows only for now) 2017-04-26 18:03:48 +02:00
Unknown W. Brackets
6c2f87b1df GPU: Consistently use useBufferedRendering_. 2017-04-24 11:57:16 -07:00
Unknown W. Brackets
e8e65881b8 Windows: Avoid restarting completely on GPU change.
This retains the logger, avoids an annoying window open/close, and most
importantly for me: keeps the debugger attached.
2017-04-15 16:33:30 -07:00
Henrik Rydgard
f18b1a5e8a When resetting Y, make sure we don't end up outside the screen. See #9563 2017-04-08 23:33:34 +02:00
Henrik Rydgard
0b7da0b6a4 When not resetting Y position, clamp Y to 0 early. See #9563 2017-04-08 23:33:23 +02:00
Henrik Rydgard
3b00088995 Typo fix 2017-04-08 18:41:21 +02:00
Henrik Rydgard
2d8910549e Switch back to using CXSCREEN/CYSCREEN for centering instead of the virtual screen. 2017-04-08 11:36:05 +02:00
Henrik Rydgard
445a837dde Windows: Make the window positioning code slightly saner and more straightforward. 2017-04-07 11:04:55 +02:00
Unknown W. Brackets
c3a4f53755 Windows: Fix check state after menu translate.
The caching in SetIngameMenuItemStates was pointless, and buggy on
language change.
2017-04-04 21:01:05 -07:00
Unknown W. Brackets
6642bf3170 Windows: Make UI update significantly cheaper.
Setting menu strings, reloading shaders, and redrawing the menu were all
a bit slow.  This skips those things unless they've changed.
2017-04-04 20:33:22 -07:00
Henrik Rydgard
0a0aa02aae Win32: Enable/disable menu items when a menu is popped down. Allows us to avoid calling UpdateUI from sceUmd. Should fix #9546 2017-04-04 10:11:03 +02:00
Unknown W. Brackets
e59ebf8ad9 Windows: Add option to browse for bg image.
And also to clear the image.
2017-04-02 10:50:09 -07:00
Henrik Rydgård
aefad893f8 Windows: Start at a sensible window size if high-DPI. Avoids the worst of #9437 but does not fix it. 2017-03-17 13:22:00 +01:00
Henrik Rydgård
1424713f62 Minor resource reorg 2017-03-17 12:35:27 +01:00
Unknown W. Brackets
14b1dac826 Remove legacy input state usage on Windows. 2017-03-14 22:07:05 -07:00
Unknown W. Brackets
255c726c1e Remove legacy pointer tracking outside Windows. 2017-03-14 22:07:05 -07:00
Henrik Rydgård
a895936913 More log cleanup. Fix resize issue: Fixes #9392 2017-03-06 13:50:22 +01:00
Henrik Rydgård
440e72d250 Clean up among the logs. Remove MASTER_LOG. 2017-03-06 13:10:23 +01:00
Henrik Rydgard
26a2d42731 Big mutex overhaul - remove our custom ones, make them non-recursive where possible 2017-02-28 11:40:29 +01:00
Henrik Rydgard
acde17e3ce Improvements to D3D11 detection and error handling. 2017-02-23 10:40:55 +01:00
Henrik Rydgard
03b607f389 Better way of updating menus on UMD switching calls 2017-01-29 11:41:31 +01:00
Henrik Rydgård
0be02f6de0 Improve smallwindow detection, code cleanup. 2017-01-17 17:21:00 +07:00
Henrik Rydgård
8b5048be72 Fix high-DPI rendering/input on Windows 2017-01-16 20:53:41 +07:00
Unknown W. Brackets
9d6684a776 Consistently resolve PBP paths, use /s in recent.
Drag and drop was using \s causing duplicate recent entries and confusing
some of the PBP parsing.  Let's make it all a bit safer.
2016-06-26 20:33:25 -07:00
Henrik Rydgard
8b450c8034 Merge NativeJit.cpp/h with JitCommon.cpp/h 2016-05-01 11:39:59 +02:00
Henrik Rydgard
6b829c9cde Safer window resize on Windows - don't updating the backbuffer size until stopped dragging.
Cherry-picked from the Vulkan branch.
2016-02-21 11:51:10 +01:00
LunaMoo
0c2efa6d44 Make sure display representation matches all cases and recreate views on window resize(this also fixes touch control layout screen). 2016-01-17 09:18:40 +01:00
Henrik Rydgard
15de6e6b98 GraphicsContext: Abstract away things like swapbuffers etc before adding even more backends.
Needed to prevent clutter all over the codebase.

Does not go all the way yet, goal would be a common render loop between platforms but not there yet.
2016-01-01 14:40:16 +01:00
Unknown W. Brackets
6e48f907dd Support minimize and maximize state.
Fixes #6893.  Minimize is mostly useful for tooling, and maximize is a
more user-friendly way of specifying a fullscreen shortcut.
2015-12-25 19:18:32 -08:00
Henrik Rydgard
44be9f2a50 Move Windows GPU init code into Windows/GPU 2015-11-03 23:22:09 +01:00
Henrik Rydgard
7f4e473e8c Add new shader viewing tool 2015-10-14 18:10:21 +02:00
Unknown W. Brackets
e98a31ef77 Cleanup some indentation. 2015-09-24 00:00:02 -07:00
Henrik Rydgard
ec63663ad5 More consistent handling of resolution changes. Should help #7995 2015-09-23 12:25:38 +02:00
Unknown W. Brackets
5c6753e486 Correct render size on fullscreen->maximized.
We don't get a WM_SIZE event, since that is only sent on "change".  This
means we don't recalculate the client area size, so we get it wrong.

Fixes #7986.
2015-09-20 21:54:27 -07:00
Henrik Rydgard
2dcf50cf5e Fix crash toggling fullscreen from within the Settings menu.
See #7957
2015-09-20 23:57:51 +02:00
Henrik Rydgard
d746d219e1 Delete some outdated xp theme stuff 2015-09-20 21:01:19 +02:00
Henrik Rydgard
ca4ffb5fd3 Minor code cleanup 2015-09-20 20:32:56 +02:00
Henrik Rydgard
1410d7f6d5 Windows: Pause the rendering thread while switching to full screen 2015-09-20 19:45:36 +02:00
Henrik Rydgard
4d18d478a0 Sample renderWidth/pixelWidth/height once per frame for the framebuffer manager. 2015-09-19 16:19:03 +02:00
Henrik Rydgard
8bedc60a93 React to window resizing in a slightly more traditional way, may help #7957? 2015-09-19 15:16:31 +02:00
Henrik Rydgard
9bf47514b8 Assorted Windows cleanup 2015-09-19 14:43:50 +02:00
Henrik Rydgard
6cc7a85cde Rename WndMainWindow to MainWindow 2015-09-19 13:14:05 +02:00