mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Fixes an issue where primitives such as text could end up with sharp
edges when creating temporary contexts:
void paint (Graphics& g)
{
g.fillAll (Colours::white);
const auto preferredType = g.getInternalContext().getPreferredImageTypeForTemporaryImages();
Image img (Image::ARGB, getWidth(), getHeight(), false, *preferredType);
{
Graphics g2 (img);
}
g.setColour (Colours::black);
g.setFont (32);
g.drawText ("test", getLocalBounds(), Justification::centred);
}
|
||
|---|---|---|
| .. | ||
| juce_gl.cpp | ||
| juce_gl.h | ||
| juce_gles2.cpp | ||
| juce_gles2.h | ||
| juce_khrplatform.h | ||
| juce_OpenGLContext.cpp | ||
| juce_OpenGLContext.h | ||
| juce_OpenGLFrameBuffer.cpp | ||
| juce_OpenGLFrameBuffer.h | ||
| juce_OpenGLGraphicsContext.cpp | ||
| juce_OpenGLGraphicsContext.h | ||
| juce_OpenGLHelpers.cpp | ||
| juce_OpenGLHelpers.h | ||
| juce_OpenGLImage.cpp | ||
| juce_OpenGLImage.h | ||
| juce_OpenGLPixelFormat.cpp | ||
| juce_OpenGLPixelFormat.h | ||
| juce_OpenGLRenderer.h | ||
| juce_OpenGLShaderProgram.cpp | ||
| juce_OpenGLShaderProgram.h | ||
| juce_OpenGLTexture.cpp | ||
| juce_OpenGLTexture.h | ||
| juce_wgl.h | ||