Skip to content

Commit

Permalink
Some more ARM64EC surge tweaks
Browse files Browse the repository at this point in the history
1. A header fragility ordering thing wiht MSVC
2. A Rectangle ambiguity
3. Turn the pipeline back on for arm64ec PR
  • Loading branch information
Paul Walker (Baconpaul) committed Nov 1, 2024
1 parent b490f99 commit 67c2a28
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
cmakeOpt: DEBUG
runTests: false

#- name: "windows msvc arm64ec"
# os: windows-latest
# target: surge-xt_Standalone
# cmakeConfig: -G"Visual Studio 17 2022" -A arm64ec -DCMAKE_SYSTEM_VERSION=10 -DSURGE_SKIP_LUA=TRUE
# cmakeOpt: DEBUG
# runTests: false
- name: "windows msvc arm64ec"
os: windows-latest
target: surge-xt_Standalone
cmakeConfig: -G"Visual Studio 17 2022" -A arm64ec -DCMAKE_SYSTEM_VERSION=10 -DSURGE_SKIP_LUA=TRUE
cmakeOpt: DEBUG
runTests: false

- name: "windows clang"
os: windows-latest
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ if(MSVC)
/wd4388 # signed unsigned mismatch in comparison
/wd4065 # standalone default in a switch with no case
/wd4702 # unreachable code. I generally do if( a ) return foo else return bar; return nullptr so don't warn on that
/wd4005 # macro redefinition. Thanks NOMINMAX

# Clang-cl-only warnings
$<$<CXX_COMPILER_ID:Clang>:-Wno-microsoft-exception-spec>
Expand Down
1 change: 1 addition & 0 deletions src/surge-xt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
juce::juce_audio_processors
juce::juce_audio_plugin_client
juce::juce_osc
juce::juce_gui_basics
surge-xt-binary
sst-filters-extras
)
Expand Down
14 changes: 9 additions & 5 deletions src/surge-xt/gui/SurgeJUCELookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
* https://github.com/surge-synthesizer/surge
*/


#include <juce_gui_basics/juce_gui_basics.h>
#include <juce_gui_extra/juce_gui_extra.h>

#include "SurgeJUCELookAndFeel.h"
#include "RuntimeFont.h"
#include "SkinSupport.h"
Expand Down Expand Up @@ -253,12 +257,12 @@ void SurgeJUCELookAndFeel::drawDocumentWindowTitleBar(DocumentWindow &window, Gr
icon->drawAt(g, titleCenter - (titleTextWidth / 2) - 14 - textMargin, h / 2 - 7, 1.0);
}

auto boxSurge = Rectangle<int>(titleCenter - (titleTextWidth / 2), 0, sw, h);
auto boxSurge = juce::Rectangle<int>(titleCenter - (titleTextWidth / 2), 0, sw, h);
g.setFont(fontSurge);
g.drawText(surgeLabel, boxSurge, Justification::centredLeft);

auto boxVersion =
Rectangle<int>(titleCenter - (titleTextWidth / 2) + sw + textMargin, 0, vw, h);
juce::Rectangle<int>(titleCenter - (titleTextWidth / 2) + sw + textMargin, 0, vw, h);
g.setFont(fontVersion);
g.drawText(surgeVersion, boxVersion, Justification::centredLeft);
}
Expand Down Expand Up @@ -286,7 +290,7 @@ class SurgeJUCELookAndFeel_DocumentWindowButton : public Button

auto reducedRect =
Justification(Justification::centred)
.appliedToRectangle(Rectangle<int>(getHeight(), getHeight()), getLocalBounds())
.appliedToRectangle(juce::Rectangle<int>(getHeight(), getHeight()), getLocalBounds())
.toFloat()
.reduced((float)getHeight() * 0.25f);

Expand Down Expand Up @@ -360,7 +364,7 @@ juce::Font SurgeJUCELookAndFeel::getPopupMenuBoldFont()
}

// overridden here just to make the shortcut text same size as normal menu entry text
void SurgeJUCELookAndFeel::drawPopupMenuItem(Graphics &g, const Rectangle<int> &area,
void SurgeJUCELookAndFeel::drawPopupMenuItem(Graphics &g, const juce::Rectangle<int> &area,
const bool isSeparator, const bool isActive,
const bool isHighlighted, const bool isTicked,
const bool hasSubMenu, const String &text,
Expand Down Expand Up @@ -479,7 +483,7 @@ void SurgeJUCELookAndFeel::updateDarkIfNeeded()
}
}
void SurgeJUCELookAndFeel::drawPopupMenuSectionHeaderWithOptions(Graphics &graphics,
const Rectangle<int> &area,
const juce::Rectangle<int> &area,
const String &sectionName,
const PopupMenu::Options &options)
{
Expand Down
2 changes: 2 additions & 0 deletions src/surge-xt/gui/overlays/KeyBindingsOverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* https://github.com/surge-synthesizer/surge
*/

#include <juce_gui_basics/juce_gui_basics.h>
#include <juce_gui_extra/juce_gui_extra.h>
#include "KeyBindingsOverlay.h"
#include <SurgeJUCELookAndFeel.h>
#include "widgets/MenuCustomComponents.h"
Expand Down
4 changes: 3 additions & 1 deletion src/surge-xt/gui/overlays/LuaEditors.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@
#ifndef SURGE_SRC_SURGE_XT_GUI_OVERLAYS_LUAEDITORS_H
#define SURGE_SRC_SURGE_XT_GUI_OVERLAYS_LUAEDITORS_H

#include <juce_gui_extra/juce_gui_extra.h>

#include "SurgeStorage.h"
#include "SkinSupport.h"

#include "juce_gui_extra/juce_gui_extra.h"
#include "OverlayComponent.h"
#include "RefreshableOverlay.h"


class SurgeGUIEditor;

namespace Surge
Expand Down
4 changes: 3 additions & 1 deletion src/surge-xt/gui/overlays/TuningOverlays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* All source for Surge XT is available at
* https://github.com/surge-synthesizer/surge
*/

#include <juce_gui_extra/juce_gui_extra.h>

#include "TuningOverlays.h"
#include "RuntimeFont.h"
#include "SurgeStorage.h"
Expand All @@ -29,7 +32,6 @@
#include "widgets/MultiSwitch.h"
#include "fmt/core.h"
#include <chrono>
#include "juce_gui_extra/juce_gui_extra.h"
#include "UnitConversions.h"
#include "libMTSClient.h"

Expand Down
3 changes: 3 additions & 0 deletions src/surge-xt/osc/OpenSoundControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
* https://github.com/surge-synthesizer/surge
*/


#include <juce_gui_basics/juce_gui_basics.h>
#include <juce_gui_extra/juce_gui_extra.h>
#include "OpenSoundControl.h"
#include "Parameter.h"
#include "SurgeSynthProcessor.h"
Expand Down

0 comments on commit 67c2a28

Please sign in to comment.