1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Direct2DContext: Remove unnecessary public constants

This commit is contained in:
reuk 2024-12-10 20:04:56 +00:00
parent 2d01e326db
commit 5f7d6d70fc
No known key found for this signature in database
2 changed files with 5 additions and 7 deletions

View file

@ -108,11 +108,6 @@ public:
Direct2DMetrics::Ptr metrics;
//==============================================================================
// Min & max frame sizes; same as Direct3D texture size limits
static int constexpr minFrameSize = 1;
static int constexpr maxFrameSize = 16384;
protected:
struct SavedState;
SavedState* currentState = nullptr;

View file

@ -432,8 +432,11 @@ public:
if (chain == nullptr)
return E_FAIL;
auto scaledSize = newSize.getUnion ({ Direct2DGraphicsContext::minFrameSize, Direct2DGraphicsContext::minFrameSize })
.getIntersection ({ Direct2DGraphicsContext::maxFrameSize, Direct2DGraphicsContext::maxFrameSize });
constexpr auto minFrameSize = 1;
constexpr auto maxFrameSize = 16384;
auto scaledSize = newSize.getUnion ({ minFrameSize, minFrameSize })
.getIntersection ({ maxFrameSize, maxFrameSize });
buffer = nullptr;