mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Image: Update return type of getPixelData to avoid dangling pointers
This commit is contained in:
parent
0be5ad1afc
commit
dcca72484f
9 changed files with 22 additions and 23 deletions
|
|
@ -2207,7 +2207,7 @@ void XWindowSystem::blitToWindow (::Window windowH, Image image, Rectangle<int>
|
|||
{
|
||||
jassert (windowH != 0);
|
||||
|
||||
auto* xbitmap = static_cast<XBitmapImage*> (image.getPixelData());
|
||||
auto* xbitmap = static_cast<XBitmapImage*> (image.getPixelData().get());
|
||||
|
||||
xbitmap->blitToWindow (windowH,
|
||||
destinationRect.getX(), destinationRect.getY(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue