Browse Source

linux window z-order fix; small change to make audio plugin host demo compile; fix for assembly language in graphics rendering on gcc.

tags/2021-05-28
jules 17 years ago
parent
commit
7dd28c93e2
6 changed files with 22 additions and 6 deletions
  1. +6
    -0
      build/linux/platform_specific_code/juce_linux_Windowing.cpp
  2. +2
    -2
      extras/audio plugin host/build/mac/PluginHost.xcodeproj/project.pbxproj
  3. +9
    -1
      juce_amalgamated.cpp
  4. +1
    -1
      juce_amalgamated.h
  5. +1
    -1
      src/juce_appframework/audio/devices/juce_AudioDeviceManager.h
  6. +3
    -1
      src/juce_appframework/gui/graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp

+ 6
- 0
build/linux/platform_specific_code/juce_linux_Windowing.cpp View File

@@ -1090,6 +1090,12 @@ public:
SubstructureRedirectMask | SubstructureNotifyMask,
&ev);
XWindowAttributes attr;
XGetWindowAttributes (display, windowH, &attr);
if (attr.override_redirect)
XRaiseWindow (display, windowH);
XSync (display, False);
handleBroughtToFront();


+ 2
- 2
extras/audio plugin host/build/mac/PluginHost.xcodeproj/project.pbxproj View File

@@ -242,7 +242,7 @@
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_OPTIMIZATION_LEVEL = 0;
PRODUCT_NAME = "Juce Plugin Host";
USER_HEADER_SEARCH_PATHS = "~/stuff/vstsdk2.4 $(inherited)";
USER_HEADER_SEARCH_PATHS = "~/SDKs/vstsdk2.4 $(inherited)";
ZERO_LINK = NO;
};
name = Debug;
@@ -253,7 +253,7 @@
buildSettings = {
PRODUCT_NAME = "Juce Plugin Host";
SEPARATE_STRIP = YES;
USER_HEADER_SEARCH_PATHS = "~/stuff/vstsdk2.4 $(inherited)";
USER_HEADER_SEARCH_PATHS = "~/SDKs/vstsdk2.4 $(inherited)";
ZERO_LINK = NO;
};
name = Release;


+ 9
- 1
juce_amalgamated.cpp View File

@@ -78203,7 +78203,8 @@ static void blendRectRGB (uint8* pixels, const int w, int h, const int stride, c
__asm emms
#else
__asm__ __volatile__ (
"movq %[aaaa], %%mm1 \n"
"\tpush %%ebx \n"
"\tmovq %[aaaa], %%mm1 \n"
"\tmovq %[rgb0], %%mm2 \n"
"\tpxor %%mm7, %%mm7 \n"
".lineLoop2: \n"
@@ -78231,6 +78232,7 @@ static void blendRectRGB (uint8* pixels, const int w, int h, const int stride, c
"\tadd %%edi, %%esi \n"
"\tdec %%ecx \n"
"\tjg .lineLoop2 \n"
"\tpop %%ebx \n"
"\temms \n"
: /* No output registers */
: [aaaa] "m" (aaaa), /* Input registers */
@@ -262349,6 +262351,12 @@ public:
SubstructureRedirectMask | SubstructureNotifyMask,
&ev);

XWindowAttributes attr;
XGetWindowAttributes (display, windowH, &attr);

if (attr.override_redirect)
XRaiseWindow (display, windowH);

XSync (display, False);

handleBroughtToFront();


+ 1
- 1
juce_amalgamated.h View File

@@ -34273,7 +34273,7 @@ private:
device selection/sample-rate/latency controls.

To use an AudioDeviceManager, create one, and use initialise() to set it up. Then
call setAudioCallback() to register your audio callback with it, and use that to process
call addAudioCallback() to register your audio callback with it, and use that to process
your audio data.

The manager also acts as a handy hub for incoming midi messages, allowing a


+ 1
- 1
src/juce_appframework/audio/devices/juce_AudioDeviceManager.h View File

@@ -62,7 +62,7 @@
device selection/sample-rate/latency controls.
To use an AudioDeviceManager, create one, and use initialise() to set it up. Then
call setAudioCallback() to register your audio callback with it, and use that to process
call addAudioCallback() to register your audio callback with it, and use that to process
your audio data.
The manager also acts as a handy hub for incoming midi messages, allowing a


+ 3
- 1
src/juce_appframework/gui/graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp View File

@@ -225,7 +225,8 @@ static void blendRectRGB (uint8* pixels, const int w, int h, const int stride, c
__asm emms
#else
__asm__ __volatile__ (
"movq %[aaaa], %%mm1 \n"
"\tpush %%ebx \n"
"\tmovq %[aaaa], %%mm1 \n"
"\tmovq %[rgb0], %%mm2 \n"
"\tpxor %%mm7, %%mm7 \n"
".lineLoop2: \n"
@@ -253,6 +254,7 @@ static void blendRectRGB (uint8* pixels, const int w, int h, const int stride, c
"\tadd %%edi, %%esi \n"
"\tdec %%ecx \n"
"\tjg .lineLoop2 \n"
"\tpop %%ebx \n"
"\temms \n"
: /* No output registers */
: [aaaa] "m" (aaaa), /* Input registers */


Loading…
Cancel
Save