mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Fix for SHM display not being available on linux.
This commit is contained in:
parent
343d68814b
commit
9b07d806e6
1 changed files with 3 additions and 1 deletions
|
|
@ -1327,6 +1327,7 @@ public:
|
|||
|
||||
default:
|
||||
#if JUCE_USE_XSHM
|
||||
if (XSHMHelpers::isShmAvailable())
|
||||
{
|
||||
ScopedXLock xlock;
|
||||
if (event.xany.type == XShmGetEventBase (display))
|
||||
|
|
@ -1902,7 +1903,8 @@ private:
|
|||
for (const Rectangle<int>* i = originalRepaintRegion.begin(), * const e = originalRepaintRegion.end(); i != e; ++i)
|
||||
{
|
||||
#if JUCE_USE_XSHM
|
||||
++shmPaintsPending;
|
||||
if (XSHMHelpers::isShmAvailable())
|
||||
++shmPaintsPending;
|
||||
#endif
|
||||
|
||||
static_cast<XBitmapImage*> (image.getPixelData())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue