mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
LowLevelGraphicsContext: Add preferred image type for temporary images
Co-authored-by: Matt Gonzalez <matt@echoaudio.com>
This commit is contained in:
parent
bf940ae42a
commit
250abe9cf4
6 changed files with 40 additions and 1 deletions
|
|
@ -729,6 +729,10 @@ std::unique_ptr<LowLevelGraphicsContext> Direct2DPixelData::createLowLevelContex
|
|||
void drawGlyphs (Span<const uint16_t>, Span<const Point<float>>, const AffineTransform&) override {}
|
||||
uint64_t getFrameId() const override { return 0; }
|
||||
Font font { FontOptions{} };
|
||||
std::unique_ptr<ImageType> getPreferredImageTypeForTemporaryImages() const override
|
||||
{
|
||||
return std::make_unique<NativeImageType>();
|
||||
}
|
||||
};
|
||||
|
||||
return std::make_unique<InertContext>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue