- Jan 06, 2020
-
-
ReinUsesLisp authored
MakeCurrent is a costly (according to Nsight's profiler it takes a tenth of a millisecond to complete), and we don't have a reason to call it because: - Qt no longer signals a warning if it's not called - yuzu no longer supports macOS
-
- Jun 03, 2019
-
-
Lioncash authored
We can make this message more meaningful by indicating the location the screenshot has been saved to. We can also log out whenever a screenshot could not be saved (e.g. due to filesystem permissions or some other reason).
-
Lioncash authored
Treating it as a u16 can result in a sign-conversion warning when performing arithmetic with it, as u16 promotes to an int when aritmetic is performed on it, not unsigned int. This also makes the interface more uniform, as the layout interface now operates on u32 across the board.
-
Lioncash authored
This class contains non-trivial members, so we should default the destructor's definition within the cpp file.
-
Lioncash authored
Same thing (for platforms we support), less reading.
-
Lioncash authored
This function is defined as taking an int, not a bool.
-
Lioncash authored
We can just pass a pointer to GMainWindow directly and make it a requirement of the interface. This makes the interface a little safer, since this would technically otherwise allow any random QWidget to be the parent of a render window, downcasting it to GMainWindow (which is undefined behavior).
-
Lioncash authored
We can just invoke these functions by qualifying the object name before the function.
-
- May 30, 2019
-
-
ReinUsesLisp authored
-
- May 26, 2019
-
-
ReinUsesLisp authored
There's no performance improvement in passing an unsigned pair by reference.
-
- May 21, 2019
-
-
ReinUsesLisp authored
-
- May 20, 2019
-
-
Lioncash authored
Allows the bootmanager code to compile with implicit string conversions disabled.
-
- May 17, 2019
-
-
ReinUsesLisp authored
Nvidia's proprietary driver creates a real OpenGL compatibility profile without this option, meanwhile Intel (and probably AMD, I haven't tested it) require that QSurfaceFormat::FormatOption::DeprecatedFunctions is explicitly enabled.
-
- Apr 20, 2019
-
-
Fernando Sahmkow authored
This option allows picking the compatibility profile since a lot of bugs are fixed in it. We devs will use this option to easierly debug current problems in our Core implementation.:wq
-
- Apr 17, 2019
-
-
Lioncash authored
The default constructor will always run, even when not specified, so this is redundant. However, the context member can indeed be initialized in the constructor initializer list.
-
Lioncash authored
Resolves -Wreorder warnings. These will automatically be initialized to nullptr anyways, so these were redundant.
-
- Apr 01, 2019
-
-
Lioncash authored
Since C++17, the introduction of deduction guides for locking facilities means that we no longer need to hardcode the mutex type into the locks themselves, making it easier to switch mutex types, should it ever be necessary in the future.
-
- Mar 25, 2019
-
-
ReinUsesLisp authored
-
ReinUsesLisp authored
-
ReinUsesLisp authored
While we are at it, remove nullptr checks for deletion, since the C++ standard defines that delete does it by its own
-
- Mar 15, 2019
-
-
liushuyu authored
-
- Mar 07, 2019
-
-
bunnei authored
-
- Mar 02, 2019
-
-
James Rowe authored
Changes the interface as well to remove any unique methods that frontends needed to call such as StartJoystickEventHandler by conditionally starting the polling thread only if the frontend hasn't started it already. Additionally, moves all global state into a single SDLState class in order to guarantee that the destructors are called in the proper order
-
- Feb 07, 2019
-
-
ReinUsesLisp authored
-
- Jan 21, 2019
-
-
James Rowe authored
With the loading screen merged, we don't want to actually show at this point, but it still needs to be shown to actually create the context. Turns out you can just show and hide it immediately and it'll work.
-
James Rowe authored
-
- Jan 20, 2019
-
-
James Rowe authored
With shader caches on the horizon, one requirement is to provide visible feedback for the progress. The shader cache reportedly takes several minutes to load for large caches that were invalidated, and as such we should provide a loading screen with progress. Adds a loading screen widget that will be shown until the first frame of the game is swapped. This was chosen in case shader caches are not being used, several games still take more than a few seconds to launch and could benefit from a loading screen.
-
- Dec 18, 2018
-
-
zhupengfei authored
Allows capturing screenshot at the current internal resolution (native for software renderer), but a setting is available to capture it in other resolutions. The screenshot is saved to a single PNG in the current layout.
-
- Nov 21, 2018
-
-
FernandoS27 authored
-
- Oct 24, 2018
-
-
Lioncash authored
This gets rid of an unnecessary type conversion. We can just use the regular QStringLiteral to already format the string as the type setWindowTitle accepts instead of converting from a std::string instance.
-
- Oct 09, 2018
-
-
NeatNit authored
change TouchToPixelPos to return std::pair<int, int> static_cast (SDL) various minor style and code improvements style - PascalCase for function names made touch events private const pointer arg in touch events make TouchToPixelPos a const member function did I do this right? braces on barely-multiline if remove question comment (confirmed in Discord) fixed consts remove unused parameter from TouchEndEvent DRY - High-DPI scaled touch put in separate function also fixes a bug where if you start touching (with either mouse or touchscreen) and drag the mouse to the LEFT of the emulator window, the touch point jumps to the RIGHT side of the touchscreen; draggin to above the window would make it jump to the bottom. implicit conversion from QPoint to QPointF, apparently I have no idea what const even means but I'll put it here anyway remove unused or used-once variables make touch scaling functions const, and put their implementations together removed unused FingerID parameters QTouchEvent forward declaration; add comment to TouchBegin that was lost in an edit better DRY in SDL To do -> TODO(NeatNit) remove unused include
-
- Sep 11, 2018
-
-
Tobias authored
* Joystick hotplug support (#4141) * use SDL_PollEvent instead of SDL_JoystickUpdate Register hot plugged controller by GUID if they were configured in a previous session * Move SDL_PollEvent into its own thread * Don't store SDLJoystick pointer in Input Device; Get pointer on each GetStatus call * Fix that joystick_list gets cleared after SDL_Quit * Add VirtualJoystick for InputDevices thats never nullptr * fixup! Add VirtualJoystick for InputDevices thats never nullptr * fixup! fixup! Add VirtualJoystick for InputDevices thats never nullptr * Remove SDL_GameController, make SDL_Joystick* unique_ptr * fixup! Remove SDL_GameController, make SDL_Joystick* unique_ptr * Adressed feedback; fixed handling of same guid reconnects * fixup! Adressed feedback; fixed handling of same guid reconnects * merge the two joystick_lists into one * make SDLJoystick a member of VirtualJoystick * fixup! make SDLJoystick a member of VirtualJoystick * fixup! make SDLJoystick a member of VirtualJoystick * fixup! fixup! make SDLJoystick a member of VirtualJoystick * SDLJoystick: Addressed review comments * Address one missed review comment
-
- Sep 06, 2018
-
-
fearlessTobi authored
-
- Jul 14, 2018
-
-
bunnei authored
-
- Jul 07, 2018
-
-
fearlessTobi authored
-
- Apr 29, 2018
-
-
Lioncash authored
Given we utilize fmt, we don't need to provide our own functions for formatting anymore
-
- Jan 19, 2018
-
-
Lioncash authored
-
- Jan 17, 2018
- Jan 16, 2018
-
-
N00byKing authored
-