diff options
author | Marco Carvalho <marcolucio27@gmail.com> | 2023-06-14 21:34:55 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-15 00:34:55 +0000 |
commit | 82f90704a0662bba7254cb0bc262d785acdabc67 (patch) | |
tree | 72d32a909661d7f26217eee66ffe1d068dcfe101 /src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs | |
parent | f978d3726a87dcc067abb2541b96b831e4390fbb (diff) |
Blocks should be synchronized on read-only fields (#5212)1.1.894
* Blocks should be synchronized on read-only fields
* more readonlys
* fix alignment
* more
* Update ISelfController.cs
* simplify new
* simplify new
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs')
-rw-r--r-- | src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs b/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs index 9a91fa32..595223ed 100644 --- a/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs +++ b/src/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardRendererBase.cs @@ -26,7 +26,7 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard const string CancelText = "Cancel"; const string ControllerToggleText = "Toggle input"; - private readonly object _bufferLock = new object(); + private readonly object _bufferLock = new(); private RenderingSurfaceInfo _surfaceInfo = null; private Image<Argb32> _surface = null; @@ -311,7 +311,7 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard private static RectangleF MeasureString(ReadOnlySpan<char> text, Font font) { RendererOptions options = new RendererOptions(font); - + if (text == "") { FontRectangle emptyRectangle = TextMeasurer.Measure(" ", options); |