Commit Graph

1788 Commits

Author SHA1 Message Date
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
Henrik Rydgard
db89bced86 Remove unused code 2017-04-06 09:57:55 +02:00
Henrik Rydgard
cf365bb257 Minor cleanup with GOLD define - only use it in System_GetPropertyInt 2017-04-05 16:21:08 +02:00
Henrik Rydgard
3ae13f3c05 Touch on Windows Desktop: Apply the DPI scale *after* ScreenToClient.
Might further improve #9554.
2017-04-05 15:36:31 +02:00
Henrik Rydgard
fc730b76df Fix XInput polling in UWP apps. Should help #9555 2017-04-05 14:13:25 +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
47284905a4 Windows: Move menu early-exits into update func.
This way we'll more easily remember to change them if we add flags.
2017-04-04 20:54:09 -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
0bd31e1567 Windows: Reduce CPU usage with no XInput connected. 2017-04-02 14:34:20 -07: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 Rydgard
8d1ece05ca Finally move flash0 into assets, fixing #9468 and #9520
CMake fix
Fix the innosetup and zip scripts for the new assets location
2017-04-01 00:20:53 +02:00
LunaMoo
4a2677e0c6 Revert unintentional change from: 429bf5d8b3 2017-03-23 11:54:54 +01:00
Henrik Rydgård
22782b6439 UWP: Fix DPI calculations for touch. Implement back button support. 2017-03-23 10:02:29 +01:00
Henrik Rydgård
d55bc86d3e Split out the UWP build into a separate .sln file. 2017-03-23 10:02:29 +01:00
Henrik Rydgård
e583a85798 UWP: Do some build system hackery to make it workable to make GOLD builds. Give the Gold build its own GUID 2017-03-23 10:02:29 +01:00
Henrik Rydgard
4a98bd904e D3D11: Implement basic screen rotation (90 degree is the only one fully implemented) 2017-03-23 10:02:28 +01:00
Henrik Rydgard
ff2b6b3fca Assorted cleanup, UWP memory map fixes. PSPFlower runs in both 32-bit and 64-bit. 2017-03-23 10:02:28 +01:00
Henrik Rydgård
c0f6a24a21 Fix issue where we were a little too aggressive when eliminating calls to SetRenderTarget 2017-03-23 10:02:28 +01:00
Henrik Rydgard
4ced81b1df UWP: Hook up basic touch/mouse input. Start work on loading from a StorageFile. Getting closer to starting to boot a game 2017-03-23 10:02:28 +01:00
Henrik Rydgard
3c52570552 Add UWP projects and rough UWP entry point application based on the sample
Delete sample load, hook things up. It now builds but doesn't run

Reformat, add an event
2017-03-23 10:02:27 +01:00
Henrik Rydgård
04faacdc84 Oops 2017-03-22 13:56:05 +01:00
Henrik Rydgård
babfa44614 Windows: d3dcompiler_47.dll is redistributable, so add it to our installation package scripts. 2017-03-22 13:44:44 +01:00
Unknown W. Brackets
a1f59deafe Fix some type narrowing warnings and typos. 2017-03-19 07:44:31 -07:00
Henrik Rydgard
9fa13c7c9d Make ReportScreen a dialog. Minor improvement to GE debugger. 2017-03-18 23:30:50 +01:00
Unknown W. Brackets
0f08e90bc6 Windows: Remove an unused function. 2017-03-18 13:47:26 -07:00
Unknown W. Brackets
4514af9d6e Windows: Improve core context init.
This clears the error from glewInit(), and ensures we check GL extensions
only after selecting the desired GL profile.

Also, consistently use the core profile flag to select the context.
2017-03-18 13:47:15 -07:00
Henrik Rydgard
37ef84ef37 Fix another silly mixup, sigh 2017-03-17 19:55:17 +01:00
Henrik Rydgard
57e6ad027e Fix silly mixup 2017-03-17 19:29:01 +01:00
Henrik Rydgård
38fd8c62ec Windows: Add a simple little cmd script to zip up the emulator 2017-03-17 14:29:45 +01: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
Henrik Rydgård
09a3de1e66 Windows: Get rid of my private gold branch, simply gate behind a define instead. 2017-03-16 15:47:59 +01:00
Henrik Rydgård
f4a0c4504f Fixes to GPU system information. Fixes #9434 2017-03-16 09:48:10 +01:00
Henrik Rydgård
e17772b58d Merge pull request #9430 from unknownbrackets/input-state
Remove legacy InputState tracking
2017-03-15 10:16:14 +01:00
Unknown W. Brackets
b00e788648 Correct touch id generation.
GestureDetector still has a max of 10.
2017-03-14 22:21:01 -07:00
Unknown W. Brackets
9e390510df Remove legacy InputState. 2017-03-14 22:07:07 -07:00
Unknown W. Brackets
e1bc26e67a Remove remaining input_state mutexing. 2017-03-14 22:07:06 -07: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
7e007c3973 Merge pull request #9426 from unknownbrackets/input-state
Remove various legacy parts of the InputState
2017-03-14 09:34:57 +01:00
Unknown W. Brackets
94700f287d Remove pad_lstick/rstick/ltrigger/rtrigger. 2017-03-13 23:01:50 -07:00
Unknown W. Brackets
2812ddcc86 Remove End/UpdateInputState and ButtonTracker.
No longer used for anything.
2017-03-13 22:58:38 -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
LunaMoo
429bf5d8b3 Use $(DefaultPlatformToolset)_xp for easier VS builds with different toolsets. 2017-03-13 21:40:08 +01:00
Henrik Rydgård
8f5f154559 Windows: Add experimental MSBuild file to build x86 and x64 builds together. 2017-03-13 14:27:09 +01:00
Henrik Rydgård
34acb8b708 Show in dev settings if PPSSPP was built using Jenkins (just a test for my internal ci build). 2017-03-13 13:55:29 +01:00
Henrik Rydgård
9bc5ee3e06 Merge pull request #9420 from unknownbrackets/screenshot
Disable Take Screenshot while not in game
2017-03-13 11:48:23 +01:00
Unknown W. Brackets
bd0d3ba6d3 Disable Take Screenshot while not in game.
Since #9284, we don't support it anymore, and 37646d6 added an error log
for the operation.  Let's also disable the menu item.
2017-03-12 22:56:26 -07:00
Unknown W. Brackets
ef57eafaad Correct GE debugger font size in small window mode.
This should handle high and low DPI cases correctly, to avoid making the
text unreadably small.
2017-03-12 12:17:35 -07:00
Henrik Rydgard
525df21751 Unbreak version check on Windows 2017-03-12 17:24:46 +01:00
Henrik Rydgard
9bb81a24c0 Fix bug where we'd reload the post shader information every frame. Fixes #9410 2017-03-11 12:25:43 +01: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 Rydgård
cfe2621604 LogManager: Hook up save/load, remove "long names" 2017-03-06 11:44:35 +01:00
Henrik Rydgård
a1941d8a81 It's enough to call net::Init/Shutdown in NativeInit/Shutdown. Remove other calls. 2017-03-06 10:51:28 +01:00
Henrik Rydgård
7b0a942905 Add app-android.cpp/h to the Windows project just for editing convenience (excluded from build) 2017-03-06 10:42:29 +01:00
Henrik Rydgard
5d5844632a Fix shader issues with D3D11 feature level 9 2017-03-05 22:56:33 +01:00
Henrik Rydgard
042d09a049 Fix #9390, also unbreak D3D11 screenshots 2017-03-05 20:30:39 +01:00
Henrik Rydgard
85717a981c Show feature levels in System Info, allow lower D3D11 feature levels 2017-03-05 11:05:36 +01:00
Henrik Rydgard
7b3f84aae8 More buildfixes for Windows on ARM 2017-03-05 10:52:08 +01:00
Henrik Rydgard
5b835839fa Make IdentifiedFileType a proper enum class 2017-03-02 12:29:03 +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
50be4e72b2 Get rid of our own silly reimplementation of std::thread 2017-02-27 20:51:36 +01:00
Henrik Rydgard
5de190a45f D3D11: Move the responsibility for the swapchain out of the DrawContext so it can be used with differently-managed D3D like with UWP.
Minor cleanups.
2017-02-27 10:10:24 +01:00
Henrik Rydgard
c219ae9e63 Further UWP fixes 2017-02-25 09:57:24 +01:00
Henrik Rydgard
03dab0fdbd More UWP prep 2017-02-25 09:57:22 +01:00
Henrik Rydgard
fa80cfa4aa Additional UWP preparations 2017-02-25 09:57:14 +01:00
Henrik Rydgard
fcbc20f240 Small changes to make Common and Core build under my preliminary UWP setup. 2017-02-24 18:59:41 +01:00
Henrik Rydgard
731026c199 D3D11: Can now switch post shader at runtime, and won't crash if they fail to translate correctly. 2017-02-23 12:42:28 +01:00
Henrik Rydgard
acde17e3ce Improvements to D3D11 detection and error handling. 2017-02-23 10:40:55 +01:00
Henrik Rydgard
947f8c5bdd Let multiple XInput devices be mapped separately. Fixes #8250 2017-02-19 15:02:47 +01:00
Henrik Rydgard
f868a0c4a1 D3D11: Fix crash with texture scaling enabled 2017-02-18 12:00:15 +01:00
Henrik Rydgard
5a0ee6cc36 Add some plumbing to be able to reach DX11.1 features. 2017-02-18 01:54:28 +01:00
Henrik Rydgard
522ac5c739 Add an escape route to D3D9 in case D3D11 fails to initialize. Cleanups. 2017-02-17 19:53:24 +01:00
Henrik Rydgard
f8305e8e47 Windows: Add main menu item for Direct3D11 2017-02-17 16:04:00 +01:00
Henrik Rydgard
e83dd2b524 Minor cleanup, elimintate some bind ordering hazards that D3D11 warns about 2017-02-17 14:31:02 +01:00
Henrik Rydgård
a99bad046b Merge pull request #9314 from hrydgard/unify-postproc
Unify postprocessing-related framebuffer code
2017-02-16 16:37:06 +01:00
LunaMoo
3297d15b4d Add new backends to windows commandline. 2017-02-16 11:30:58 +01:00
Henrik Rydgard
5c918da774 Minor cleanups (combined two identical enums, misc) 2017-02-15 11:06:59 +01:00
Henrik Rydgard
a8ee70f23d Import SPIRV-Cross. This will be used later to translate post-processing shaders to the various shader languages we use.
Eventually, this will make it possible to use post-processing with
Vulkan and D3D11. Probably not DX9, though maybe.

Not adding to Android build, there's some strangeness with STL.
2017-02-14 23:33:27 +01:00
Henrik Rydgard
cbf24a9d78 Get rid of "AutoInit", instead always keep the network initialized.
See #9305
2017-02-14 13:12:02 +01:00
Henrik Rydgard
77d087776c D3D11: Support window resize 2017-02-14 11:21:53 +01:00
Henrik Rydgard
b5034c4e00 Hide the D3D11 backend if Windows version is older than Win8 2017-02-14 10:33:42 +01:00
Henrik Rydgård
05bdf8abbf Windows GEDebugger: Make display list view DPI-aware for easier debugging on high-dpi screens 2017-02-12 14:11:14 +01:00
Henrik Rydgård
bbdb0ee195 Fix the stencil buffer initialization stuff (not sure it's 100% working et) 2017-02-12 13:55:49 +01:00
Henrik Rydgård
6efdde9ea4 D3D11: Fix build issue in Release mode. Triangle fan workaround. 2017-02-12 12:12:36 +01:00
Henrik Rydgård
f7717063a8 Assorted fixes for memory leaks etc 2017-02-10 14:41:32 +01:00
Henrik Rydgard
3f4e14f504 D3D11: Lumines is now playable in non-buffered, with reverse colors. 2017-02-10 11:25:24 +01:00
Henrik Rydgard
5ee3b534ed More D3D11 improvements 2017-02-10 10:26:18 +01:00
Henrik Rydgard
aba669c3e6 D3D11: Cube now visible 2017-02-10 00:30:42 +01:00
Henrik Rydgard
6b193e7434 Break on D3D11 validation errors in _DEBUG mode 2017-02-10 00:01:34 +01:00
Henrik Rydgard
41fecc8c16 More D3D11 basics. Only dynamic constant buffers left, then it should display the UI. 2017-02-07 19:45:09 +01:00
Henrik Rydgard
abc80ae770 Enough D3D11 to stumble to the first thin3d draw call. Buffers not implemented yet. 2017-02-07 11:44:44 +01:00
Henrik Rydgard
e5c20b47cd Add new headers to "dx9sdk" for D3D11. Enable building of the very early d3d11 code. 2017-02-07 09:29:23 +01:00
Henrik Rydgard
ad29974a56 Change when drawcontexts are allocated. Hook up backbuffer events to fix d3d9 resizing. 2017-02-06 11:40:16 +01:00
Henrik Rydgard
f1c96c056d Move all the GL/D3D9 FBO code into thin3d. 2017-02-06 11:40:16 +01:00