Skip to content

Commit

Permalink
Merge branch 'bugfixes' into feature
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1t3cht committed Jan 6, 2025
2 parents 7db477c + d06d9b5 commit b2a0b09
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 5 deletions.
Binary file modified packages/osx_bundle/Contents/Resources/Aegisub.icns
Binary file not shown.
Binary file modified packages/osx_bundle/Contents/Resources/assIcon.icns
Binary file not shown.
Binary file modified packages/osx_bundle/Contents/Resources/srtIcon.icns
Binary file not shown.
Binary file modified packages/osx_bundle/Contents/Resources/ssaIcon.icns
Binary file not shown.
Binary file modified packages/osx_bundle/Contents/Resources/txtIcon.icns
Binary file not shown.
6 changes: 5 additions & 1 deletion src/dialog_colorpicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,14 @@ class ColorPickerScreenDropper final : public wxControl {
void DropFromScreenXY(int x, int y);
};

#ifndef MAC_OS_VERSION_15_0
#define MAC_OS_VERSION_15_0 150000
#endif

void ColorPickerScreenDropper::DropFromScreenXY(int x, int y) {
wxMemoryDC capdc(capture);
capdc.SetPen(*wxTRANSPARENT_PEN);
#ifndef __WXMAC__
#if !(defined(__WXMAC__) && (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_VERSION_15_0))
std::unique_ptr<wxDC> screen;

if (!OPT_GET("Tool/Colour Picker/Restrict to Window")->GetBool()) {
Expand Down
4 changes: 2 additions & 2 deletions src/font_file_lister_coretext.mm
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
//
// Aegisub Project http://www.aegisub.org/

#include "font_file_lister.h"

#include <AppKit/AppKit.h>
#include <CoreText/CoreText.h>

#include "font_file_lister.h"

namespace {
struct FontMatch {
NSURL *url = nil;
Expand Down
2 changes: 1 addition & 1 deletion subprojects/boost.wrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[wrap-file]
directory = boost_1_83_0
source_url = https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.gz
source_url = https://archives.boost.io/release/1.83.0/source/boost_1_83_0.tar.gz
source_filename = boost_1_83_0.tar.gz
source_hash = c0685b68dd44cc46574cce86c4e17c0f611b15e195be9848dfd0769a0a207628
patch_directory = boost
10 changes: 9 additions & 1 deletion tools/osx-dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ cp -v "${SRC_DIR}/packages/osx_bundle/Contents/Resources/Aegisub.icns" "${DMG_TM

echo
echo "---- Creating image ----"
/usr/bin/hdiutil create -srcfolder "${DMG_TMP_DIR}" -volname "${PKG_NAME}" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDRW "${DMG_RW_PATH}"
max_tries=10
i=0
until /usr/bin/hdiutil create -srcfolder "${DMG_TMP_DIR}" -volname "${PKG_NAME}" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDRW "${DMG_RW_PATH}"; do
if [ $i -eq $max_tries ]; then
echo "Error: hdiutil failed after ${max_tries} tries."
exit 1
fi
i=$((i+1))
done

echo
echo "---- Mounting image ----"
Expand Down

0 comments on commit b2a0b09

Please sign in to comment.