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:
parent
2d01e326db
commit
5f7d6d70fc
2 changed files with 5 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue