Files
sbox-public/engine/Sandbox.System/Math/QRectF.cs
Garry Newman 8488a42896 Misc fixes 2205 (#4906)
* Fix CodeGeneratorAttribute not setting priority
* Fix Color32.Write not writing a
* Logger correctly writes exceptions in Info/Trace
* Fix QRectF float truncation
* Fix parsing error in Phrase
* Fix exception in Widget.IsActiveWindow
* Don't try to unlock achievements on the dedicated server
* Don't try to CopyFrom an invalid texture
* Component.Invoke doesn't throw exception when CancellationToken is cancelled, just returns silently
* LobbyQuery.Request returns empty if no SteamMatchmaking pointer
* Fix not capturing achievement unlock exception properly
* Fix NRE in DisconnectScope
* LobbyQuery.RequestAsync returns an empty array instead of null if query fucked up
2026-05-22 12:16:07 +01:00

21 lines
434 B
C#

using Sandbox;
/// <summary>
/// You're not seeing things, QT uses fucking doubles
/// </summary>
internal struct QRectF
{
public double x;
public double y;
public double w;
public double h;
public static implicit operator QRectF( in Rect value )
{
return new QRectF { x = value.Left, y = value.Top, w = value.Width, h = value.Height };
}
public readonly Rect Rect => new( (float)x, (float)y, (float)w, (float)h );
}