Commit Graph
137 Commits
Author SHA1 Message Date
Henrik Rydgård 0d60c3f386 Fix UI crash when keyboard navigating out of popup list. 2017-11-30 01:21:03 +01:00
Henrik Rydgård c04ead1023 When drawing text using our truetype backends, round coordinates to pixels. Fixes #10180 2017-11-23 15:07:59 +01:00
Henrik Rydgård 3ecd7b4c02 Get rid of collision-prone font cache keys. Stress the font cache a little less on slider dialogs. 2017-11-22 22:44:34 +01:00
Henrik Rydgård 7b1e1cd5e0 Automatically scroll textboxes when the caret ends up outside. Fixes #10026 .
There was some code for this before but it didn't work.
2017-10-24 23:05:21 +02:00
Henrik Rydgård ec7e634215 Fix space stripping in a few more string input methods. Helps #9795 2017-08-08 16:42:05 +02:00
Henrik Rydgård f4cf501cf6 Separate X and Y dpi_scale 2017-08-07 13:37:01 +02:00
Henrik Rydgård 6e98dbb574 Split out the Qt font drawer in its own file. 2017-06-04 11:52:14 +02:00
Henrik Rydgård 32ae86f708 Split TextDrawer into interface and implementation. 2017-06-04 11:52:11 +02:00
Henrik Rydgård 6bcfe539f7 Use vulkan-style clear-on-bind when switching render targets. Not optimally used yet.
Also removes a bunch of redundant render target binds.
2017-05-30 09:36:17 +02:00
Henrik Rydgård 0f171acacb Start refactoring things to be more vulkan-friendly 2017-05-30 09:36:17 +02:00
Henrik Rydgård 6147448719 Draw overlays at the proper time in the frame. 2017-05-30 09:36:17 +02:00
Henrik Rydgård 3b6fa9be87 Start work on separating frame from backbuffer renderpass 2017-05-30 09:36:17 +02:00
Henrik Rydgård 7d0cfbabe7 thin3d gles: Unbind buffers after drawing. Fixes #9715 2017-05-24 12:06:02 +02:00
Henrik Rydgård ad84058d3a Really no need to hold eventMutex_ while dispatching events, only when interacting with the queue. Might fix further deadlocks (see #9698) 2017-05-18 17:29:36 +02:00
Henrik Rydgård 2f5ea23a8a Prevent a deadlock between View::eventMutex_ and ScreenManager::inputMutex_ by locking here so the reverse lock order can't happen. 2017-05-18 14:37:42 +02:00
Henrik Rydgård 79c0d895ce Found a suspicious hang report that makes me think this mutex should be recursive. 2017-05-18 13:29:18 +02:00
Henrik Rydgard d3ff35b2c0 Fix to partial restarts (when switching backends), plus misc. Helps #9666 2017-05-05 12:31:06 +02:00
Henrik Rydgard 9a1cd5a5e8 Add some paranoid checks around touch IDs that probably won't help #9647
Also adds LunaMoo to credits list.
2017-04-30 08:57:44 +02:00
Unknown W. Brackets de3c4fe111 UI: Fix crash on item select with hidden items.
Because we can't assume the number is an index into the views, when some
of those views weren't created.
2017-04-29 13:04:28 -07:00
Henrik Rydgard 19bf222ea4 Make the gesture detector treat all touches fully individually. Fixes issues with last commit. 2017-04-06 15:51:00 +02:00
Henrik Rydgard a8d6de26e3 Further fixes to #9554 2017-04-06 15:35:36 +02:00
Henrik Rydgard 14538a6d81 Make scroll gesture detector compatible with other touches than #0. Should help #9554. 2017-04-06 09:58:08 +02:00
Henrik Rydgard f7da9204c1 Allow using any touchId to scroll. Should help #9554. 2017-04-05 09:57:26 +02:00
Unknown W. Brackets 755429df81 UI: Fix issues with insta-close pop ups.
Not that these should happen, but at least should make sure they work.
2017-03-26 08:58:04 -07:00
Unknown W. Brackets 0a73828042 UI: Use theme colors in more places.
Hopefully everywhere.
2017-03-26 08:57:04 -07:00
Henrik Rydgard dfc0b32733 More work on UWP upbring 2017-03-23 10:02:27 +01:00
Henrik Rydgård d721b629ca Accept DPAD_CENTER as an "Accept" key. Fixes #9471 2017-03-22 16:52:34 +01:00
Unknown W. Brackets 07d2b4fb46 UI: Make popups transition their button. 2017-03-21 18:45:49 -07:00
Unknown W. Brackets 4fb8ac96ce UI: Zero initialize EventParams in typical usage.
Better to be safe.
2017-03-21 18:45:48 -07:00
Henrik Rydgård fdfc572b69 Misc logging improvments, minor safety check 2017-03-20 13:07:22 +01:00
Unknown W. Brackets 09dac5dfa3 UI: Fade PopupScreens out too. 2017-03-19 17:45:39 -07:00
Unknown W. Brackets 073e056369 UI: Allow overriding dialog logic on finish.
This seems cleaner.
2017-03-19 17:43:03 -07:00
Unknown W. Brackets 9f3415f43f UI: Ask linear child views to stay inside AT_MOST.
Fixes the DevMenu pop up in larger windows.
2017-03-19 16:36:21 -07:00
Unknown W. Brackets efbfdbb4a7 UI: Make PopupScreens animate in just a bit. 2017-03-19 16:33:32 -07:00
Unknown W. Brackets 9c15efaa85 UI: Consider only the lower screen's postRender.
This makes more sense at least than applying one of each...
2017-03-19 15:42:13 -07:00
Unknown W. Brackets a36ecb7065 UI: Track translate/scale/fade transform by screen.
This translates drawing, scissor, and touch to the transform.
2017-03-19 15:42:13 -07:00
Unknown W. Brackets e1ef359e80 Remove unused drag capture state tracking. 2017-03-14 22:07:07 -07:00
Unknown W. Brackets 9e390510df Remove legacy InputState. 2017-03-14 22:07:07 -07:00
Unknown W. Brackets 02855e7abb Remove unused pad_buttons and old virtual_input.
GamepadEmu does this now.
2017-03-13 22:57:22 -07:00
Henrik Rydgård 529d84a57b Avoid a crash if trying to do two screen switches at once.
Managed to make this happen while using the UWP File Open dialog - it
lagged and I started another action while it hadn't returned.
2017-03-07 15:33:23 +01:00
Henrik Rydgård 12d839d679 UI: Fix issue where on some DPI/resolution combinations, a line of uncleared data would be visible at the bottom and right parts of the window. 2017-03-06 10:36:31 +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 2fabe3e1c5 Fix a number of resource leaks, both D3D11-only and general.
Additionally, fix D3D11 BlitFramebuffer
2017-02-17 19:23:01 +01:00
Henrik Rydgard 20d9e60a67 Just some renaming. Start moving away from the "thin3d" name 2017-01-30 14:38:31 +01:00
Henrik Rydgård 6a7d3a3910 Break out image file management from DrawContext (thin3d) 2017-01-24 20:58:59 +01:00
Henrik Rydgård 1b158c116c UI: Fix scissor test issues introduced recently 2017-01-17 20:26:48 +07:00
Henrik Rydgård 9f2e83b66c Bundle up more state in the pipeline object. Lets us get rid of Vulkan's pipeline cache. 2016-12-27 11:59:11 +01:00
Henrik Rydgård 166243e0fd Make pipelines bound state 2016-12-27 11:59:10 +01:00
Henrik Rydgård 4462a8cc99 Rename ShaderSet to Pipeline. Get rid of scissorEnable setting (scissor is always enabled). 2016-12-27 11:59:10 +01:00
Henrik Rydgård 3de4a38527 More renaming to match 2016-12-27 11:59:10 +01:00