diff options
author | B. Stack <bgstack15@gmail.com> | 2022-11-01 18:05:27 +0000 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-11-01 18:05:27 +0000 |
commit | 33bd3d9138de7e847e29646ff3bceefa521dc809 (patch) | |
tree | c1dcaffb441e4dcd4a34047cc34f3065ffb3573c /freefilesync/debian/patches/revert_zenju_aggressive_upstreamisms.patch | |
parent | Merge branch 'makemkv-bump' into 'master' (diff) | |
parent | ffs 11.27 dpkg rc1 (diff) | |
download | stackrpms-33bd3d9138de7e847e29646ff3bceefa521dc809.tar.gz stackrpms-33bd3d9138de7e847e29646ff3bceefa521dc809.tar.bz2 stackrpms-33bd3d9138de7e847e29646ff3bceefa521dc809.zip |
Merge branch 'freefilesync-bump' into 'master'
ffs 11.27, dpkg only
See merge request bgstack15/stackrpms!326
Diffstat (limited to 'freefilesync/debian/patches/revert_zenju_aggressive_upstreamisms.patch')
-rw-r--r-- | freefilesync/debian/patches/revert_zenju_aggressive_upstreamisms.patch | 191 |
1 files changed, 106 insertions, 85 deletions
diff --git a/freefilesync/debian/patches/revert_zenju_aggressive_upstreamisms.patch b/freefilesync/debian/patches/revert_zenju_aggressive_upstreamisms.patch index afa3b72..20ccedb 100644 --- a/freefilesync/debian/patches/revert_zenju_aggressive_upstreamisms.patch +++ b/freefilesync/debian/patches/revert_zenju_aggressive_upstreamisms.patch @@ -1,10 +1,14 @@ -Message: Some of these can be traced back to version 10.23 which was the last to not use <unordered_map> +Description: Some of these can be traced back to version 10.23 which was the last to not use <unordered_map> + Had to revert gui_status_handler.cpp and .h entirely to version 11.0 to avoid the wx 3.1.4-isms here. + . + Now have to revert wxWidgets 3.1.4 upstreamisms + cd 11.1-0 ; git diff HEAD~1 -- $( grep -l -rIE 'wxASCII_STR' ) > ~/foo1 ; ( cd ../11.1-2 ; vi ~/foo1 $( grep -l -rIE 'wxASCII_STR' ) ; ) + cd 11.1-0 ; git diff HEAD~1 -- $( grep -l -rIE 'wxDD_SHOW_HIDDEN' ) > ~/foo1 ; ( cd ../11.1-2 ; vi ~/foo1 $( grep -l -rIE 'wxDD_SHOW_HIDDEN' ) ; ) Date: 2022-09-07 -Version: 11.25 +Version: 11.26 Author: bgstack15 -diff -x '*.rej' -x '*.orig' -x '*.git*' -Naur 10.24-0/wx+/choice_enum.h 10.24-1/wx+/choice_enum.h ---- 10.24-0/wx+/choice_enum.h 2020-05-17 18:30:59.441499418 -0400 -+++ 10.24-1/wx+/choice_enum.h 2020-05-17 18:53:59.893685507 -0400 +--- a/wx+/choice_enum.h ++++ b/wx+/choice_enum.h @@ -7,7 +7,6 @@ #ifndef CHOICE_ENUM_H_132413545345687 #define CHOICE_ENUM_H_132413545345687 @@ -13,7 +17,7 @@ diff -x '*.rej' -x '*.orig' -x '*.git*' -Naur 10.24-0/wx+/choice_enum.h 10.24-1/ #include <vector> #include <wx/choice.h> -@@ -47,8 +46,6 @@ +@@ -47,8 +46,6 @@ struct EnumDescrList using DescrList = std::vector<std::pair<Enum, std::pair<wxString, wxString>>>; DescrList descrList; @@ -22,7 +26,7 @@ diff -x '*.rej' -x '*.orig' -x '*.git*' -Naur 10.24-0/wx+/choice_enum.h 10.24-1/ }; template <class Enum> void setEnumVal(const EnumDescrList<Enum>& mapping, wxChoice& ctrl, Enum value); template <class Enum> Enum getEnumVal(const EnumDescrList<Enum>& mapping, const wxChoice& ctrl); -@@ -71,32 +68,24 @@ +@@ -71,32 +68,24 @@ template <class Enum> void updateTooltip template <class Enum> void setEnumVal(EnumDescrList<Enum>& mapping, wxChoice& ctrl, Enum value) { @@ -69,7 +73,7 @@ diff -x '*.rej' -x '*.orig' -x '*.git*' -Naur 10.24-0/wx+/choice_enum.h 10.24-1/ } template <class Enum> -@@ -115,17 +103,11 @@ +@@ -115,17 +104,11 @@ Enum getEnumVal(const EnumDescrList<Enum template <class Enum> void updateTooltipEnumVal(const EnumDescrList<Enum>& mapping, wxChoice& ctrl) { @@ -91,13 +95,9 @@ diff -x '*.rej' -x '*.orig' -x '*.git*' -Naur 10.24-0/wx+/choice_enum.h 10.24-1/ } } -Message: Now have to revert wxWidgets 3.1.4 upstreamisms -cd 11.1-0 ; git diff HEAD~1 -- $( grep -l -rIE 'wxASCII_STR' ) > ~/foo1 ; ( cd ../11.1-2 ; vi ~/foo1 $( grep -l -rIE 'wxASCII_STR' ) ; ) -cd 11.1-0 ; git diff HEAD~1 -- $( grep -l -rIE 'wxDD_SHOW_HIDDEN' ) > ~/foo1 ; ( cd ../11.1-2 ; vi ~/foo1 $( grep -l -rIE 'wxDD_SHOW_HIDDEN' ) ; ) -diff -x '*.orig' -x '*.rej' -aur 11.2-0/FreeFileSync/Source/RealTimeSync/folder_selector2.cpp 11.2-1/FreeFileSync/Source/RealTimeSync/folder_selector2.cpp ---- 11.2-0/FreeFileSync/Source/RealTimeSync/folder_selector2.cpp 2020-10-02 14:39:05.273463072 -0400 -+++ 11.2-1/FreeFileSync/Source/RealTimeSync/folder_selector2.cpp 2020-10-02 15:06:56.670070620 -0400 -@@ -158,7 +158,7 @@ +--- a/FreeFileSync/Source/RealTimeSync/folder_selector2.cpp ++++ b/FreeFileSync/Source/RealTimeSync/folder_selector2.cpp +@@ -165,7 +165,7 @@ void FolderSelector2::onSelectDir(wxComm } Zstring newFolderPath; @@ -106,10 +106,9 @@ diff -x '*.orig' -x '*.rej' -aur 11.2-0/FreeFileSync/Source/RealTimeSync/folder_ if (folderSelector.ShowModal() != wxID_OK) return; newFolderPath = utfTo<Zstring>(folderSelector.GetPath()); -diff -x '*.orig' -x '*.rej' -aur 11.1-1/FreeFileSync/Source/ui/command_box.h 11.1-2/FreeFileSync/Source/ui/command_box.h ---- 11.1-1/FreeFileSync/Source/ui/command_box.h 2020-09-01 19:07:43.719122215 -0400 -+++ 11.1-2/FreeFileSync/Source/ui/command_box.h 2020-09-01 20:09:56.840929352 -0400 -@@ -30,7 +30,7 @@ +--- a/FreeFileSync/Source/ui/command_box.h ++++ b/FreeFileSync/Source/ui/command_box.h +@@ -28,7 +28,7 @@ public: const wxString choices[] = nullptr, long style = 0, const wxValidator& validator = wxDefaultValidator, @@ -118,10 +117,9 @@ diff -x '*.orig' -x '*.rej' -aur 11.1-1/FreeFileSync/Source/ui/command_box.h 11. void setHistory(const std::vector<Zstring>& history, size_t historyMax) { history_ = history; historyMax_ = historyMax; } std::vector<Zstring> getHistory() const { return history_; } -diff -x '*.orig' -x '*.rej' -aur 11.1-1/FreeFileSync/Source/ui/folder_history_box.h 11.1-2/FreeFileSync/Source/ui/folder_history_box.h ---- 11.1-1/FreeFileSync/Source/ui/folder_history_box.h 2020-09-01 19:07:43.719122215 -0400 -+++ 11.1-2/FreeFileSync/Source/ui/folder_history_box.h 2020-09-01 20:09:50.624849989 -0400 -@@ -68,7 +68,7 @@ +--- a/FreeFileSync/Source/ui/folder_history_box.h ++++ b/FreeFileSync/Source/ui/folder_history_box.h +@@ -68,7 +68,7 @@ public: const wxString choices[] = nullptr, long style = 0, const wxValidator& validator = wxDefaultValidator, @@ -130,10 +128,9 @@ diff -x '*.orig' -x '*.rej' -aur 11.1-1/FreeFileSync/Source/ui/folder_history_bo void setHistory(std::shared_ptr<HistoryList> sharedHistory) { sharedHistory_ = std::move(sharedHistory); } std::shared_ptr<HistoryList> getHistory() { return sharedHistory_; } -diff -x '*.orig' -x '*.rej' -aur 11.2-0/FreeFileSync/Source/ui/folder_selector.cpp 11.2-1/FreeFileSync/Source/ui/folder_selector.cpp ---- 11.2-0/FreeFileSync/Source/ui/folder_selector.cpp 2020-10-02 14:39:05.297463367 -0400 -+++ 11.2-1/FreeFileSync/Source/ui/folder_selector.cpp 2020-10-02 15:08:07.066935749 -0400 -@@ -232,7 +232,7 @@ +--- a/FreeFileSync/Source/ui/folder_selector.cpp ++++ b/FreeFileSync/Source/ui/folder_selector.cpp +@@ -239,7 +239,7 @@ void FolderSelector::onSelectFolder(wxCo Zstring shellItemPath; //default size? Windows: not implemented, Linux(GTK2): not implemented, macOS: not implemented => wxWidgets, what is this shit!? @@ -142,10 +139,9 @@ diff -x '*.orig' -x '*.rej' -aur 11.2-0/FreeFileSync/Source/ui/folder_selector.c //GTK2: "Show hidden" is also available as a context menu option in the folder picker! //It looks like wxDD_SHOW_HIDDEN only sets the default when opening for the first time!? if (folderSelector.ShowModal() != wxID_OK) -diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/bitmap_button.h 11.1-2/wx+/bitmap_button.h ---- 11.22-0/wx+/bitmap_button.h 2022-06-26 12:01:15.638291465 -0400 -+++ 11.22-1/wx+/bitmap_button.h 2022-06-26 12:51:34.527830821 -0400 -@@ -28,7 +28,7 @@ +--- a/wx+/bitmap_button.h ++++ b/wx+/bitmap_button.h +@@ -28,7 +28,7 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, @@ -154,7 +150,7 @@ diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/bitmap_button.h 11.1-2/wx+/bitmap_bu wxBitmapButton(parent, id, wxNullBitmap, pos, size, style, validator, name) { SetLabel(label); -@@ -104,7 +104,6 @@ +@@ -104,7 +104,6 @@ inline wxBitmap renderSelectedButton(const wxSize& sz) { wxBitmap bmp(sz); //seems we don't need to pass 24-bit depth here even for high-contrast color schemes @@ -162,7 +158,7 @@ diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/bitmap_button.h 11.1-2/wx+/bitmap_bu { wxMemoryDC dc(bmp); -@@ -120,7 +119,6 @@ +@@ -120,7 +119,6 @@ inline wxBitmap renderPressedButton(const wxSize& sz) { wxBitmap bmp(sz); //seems we don't need to pass 24-bit depth here even for high-contrast color schemes @@ -170,9 +166,8 @@ diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/bitmap_button.h 11.1-2/wx+/bitmap_bu { //draw rectangle border with gradient const wxColor colFrom = wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE); -diff -aur -x '*.git*' -x '.*.swp' -x '*.orig' -x '*.rej' 11.6-0/wx+/dc.h 11.6-1/wx+/dc.h ---- 11.23-0/wx+/dc.h 2022-08-03 08:55:32.140102989 -0400 -+++ 11.23-1/wx+/dc.h 2022-08-03 09:27:55.367666939 -0400 +--- a/wx+/dc.h ++++ b/wx+/dc.h @@ -12,7 +12,7 @@ #include <zen/basic_math.h> #include <wx/dcbuffer.h> //for macro: wxALWAYS_NATIVE_DOUBLE_BUFFER @@ -182,7 +177,7 @@ diff -aur -x '*.git*' -x '.*.swp' -x '*.orig' -x '*.rej' 11.6-0/wx+/dc.h 11.6-1/ #include <gtk/gtk.h> -@@ -92,9 +92,6 @@ +@@ -92,9 +92,6 @@ constexpr int defaultDpi = 96; //on Wind inline int getDPI() { @@ -192,7 +187,7 @@ diff -aur -x '*.git*' -x '.*.swp' -x '*.orig' -x '*.rej' 11.6-0/wx+/dc.h 11.6-1/ //GTK2 doesn't properly support high DPI: https://freefilesync.org/forum/viewtopic.php?t=6114 //=> requires general fix at wxWidgets-level -@@ -130,7 +127,6 @@ +@@ -130,7 +127,6 @@ wxBitmap toScaledBitmap(const wxImage& i { //wxBitmap(const wxImage& image, int depth = -1, double WXUNUSED(scale) = 1.0) => wxWidgets just ignores scale parameter! WTF! wxBitmap bmpScaled(img); @@ -200,10 +195,9 @@ diff -aur -x '*.git*' -x '.*.swp' -x '*.orig' -x '*.rej' 11.6-0/wx+/dc.h 11.6-1/ return bmpScaled; //when testing use 175% scaling: wxWidgets' scaling logic doesn't kick in for 150% only } -diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/graph.h 11.1-2/wx+/graph.h ---- 11.1-1/wx+/graph.h 2020-09-01 19:07:43.731122359 -0400 -+++ 11.1-2/wx+/graph.h 2020-09-01 20:10:36.541429649 -0400 -@@ -153,7 +153,7 @@ +--- a/wx+/graph.h ++++ b/wx+/graph.h +@@ -192,7 +192,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL | wxNO_BORDER, @@ -212,10 +206,9 @@ diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/graph.h 11.1-2/wx+/graph.h class CurveAttributes { -diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/grid.cpp 11.1-2/wx+/grid.cpp ---- 11.1-1/wx+/grid.cpp 2020-09-01 20:07:24.418981662 -0400 -+++ 11.1-2/wx+/grid.cpp 2020-09-01 20:10:23.745268393 -0400 -@@ -268,7 +268,7 @@ +--- a/wx+/grid.cpp ++++ b/wx+/grid.cpp +@@ -263,7 +263,7 @@ class Grid::SubWindow : public wxWindow { public: SubWindow(Grid& parent) : @@ -224,10 +217,9 @@ diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/grid.cpp 11.1-2/wx+/grid.cpp parent_(parent) { Bind(wxEVT_PAINT, [this](wxPaintEvent& event) { onPaintEvent(event); }); -diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/grid.h 11.1-2/wx+/grid.h ---- 11.1-1/wx+/grid.h 2020-09-01 19:07:43.731122359 -0400 -+++ 11.1-2/wx+/grid.h 2020-09-01 20:10:48.817584344 -0400 -@@ -149,7 +149,7 @@ +--- a/wx+/grid.h ++++ b/wx+/grid.h +@@ -149,7 +149,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL | wxNO_BORDER, @@ -236,10 +228,9 @@ diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/grid.h 11.1-2/wx+/grid.h size_t getRowCount() const; -diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/toggle_button.h 11.1-2/wx+/toggle_button.h ---- 11.1-1/wx+/toggle_button.h 2020-09-01 19:07:43.731122359 -0400 -+++ 11.1-2/wx+/toggle_button.h 2020-09-01 20:10:44.629531569 -0400 -@@ -24,7 +24,7 @@ +--- a/wx+/toggle_button.h ++++ b/wx+/toggle_button.h +@@ -24,7 +24,7 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, @@ -248,7 +239,7 @@ diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/toggle_button.h 11.1-2/wx+/toggle_bu wxBitmapButton(parent, id, bitmap, pos, size, style, validator, name) {} //wxButton constructor -@@ -35,7 +35,7 @@ +@@ -35,7 +35,7 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, @@ -257,12 +248,9 @@ diff -x '*.orig' -x '*.rej' -aur 11.1-1/wx+/toggle_button.h 11.1-2/wx+/toggle_bu wxBitmapButton(parent, id, wxNullBitmap, pos, size, style, validator, name) { SetLabel(label); -Version: 11.1 -Message: Had to revert gui_status_handler.cpp and .h entirely to version 11.0 to avoid the wx 3.1.4-isms here. -diff --git a/FreeFileSync/Source/ui/gui_status_handler.cpp b/FreeFileSync/Source/ui/gui_status_handler.cpp ---- 11.25-0/FreeFileSync/Source/ui/gui_status_handler.cpp 2022-09-07 14:54:31.552630085 -0400 -+++ 11.25-1/FreeFileSync/Source/ui/gui_status_handler.cpp 2022-09-07 16:32:17.114749584 -0400 -@@ -44,8 +44,8 @@ +--- a/FreeFileSync/Source/ui/gui_status_handler.cpp ++++ b/FreeFileSync/Source/ui/gui_status_handler.cpp +@@ -44,8 +44,8 @@ StatusHandlerTemporaryPanel::StatusHandl mainDlg_.Update(); //don't wait until idle event! //register keys @@ -273,7 +261,7 @@ diff --git a/FreeFileSync/Source/ui/gui_status_handler.cpp b/FreeFileSync/Source } -@@ -129,9 +129,8 @@ +@@ -129,9 +129,8 @@ StatusHandlerTemporaryPanel::~StatusHand mainDlg_.auiMgr_.Update(); //unregister keys @@ -285,7 +273,7 @@ diff --git a/FreeFileSync/Source/ui/gui_status_handler.cpp b/FreeFileSync/Source mainDlg_.compareStatus_->teardown(); -@@ -324,7 +323,7 @@ +@@ -336,7 +335,7 @@ void StatusHandlerTemporaryPanel::forceU } @@ -294,7 +282,7 @@ diff --git a/FreeFileSync/Source/ui/gui_status_handler.cpp b/FreeFileSync/Source { const int keyCode = event.GetKeyCode(); if (keyCode == WXK_ESCAPE) -@@ -334,7 +333,7 @@ +@@ -346,7 +345,7 @@ void StatusHandlerTemporaryPanel::onLoca } @@ -303,11 +291,9 @@ diff --git a/FreeFileSync/Source/ui/gui_status_handler.cpp b/FreeFileSync/Source { userRequestAbort(); } -diff --git a/FreeFileSync/Source/ui/gui_status_handler.h b/FreeFileSync/Source/ui/gui_status_handler.h -index e8ed01e4..2a9e00d2 100644 --- a/FreeFileSync/Source/ui/gui_status_handler.h +++ b/FreeFileSync/Source/ui/gui_status_handler.h -@@ -41,8 +41,8 @@ public: +@@ -46,8 +46,8 @@ public: Result reportResults(); //noexcept!! private: @@ -318,10 +304,9 @@ index e8ed01e4..2a9e00d2 100644 void showStatsPanel(); MainDialog& mainDlg_; -diff -Naur -x '*.orig' -x '*.rej' -x '*.git*' 11.4-1/wx+/no_flicker.h 11.4-2/wx+/no_flicker.h ---- 11.4-1/wx+/no_flicker.h 2020-12-08 08:15:29.436156549 -0500 -+++ 11.4-2/wx+/no_flicker.h 2020-12-08 20:11:25.066820270 -0500 -@@ -70,7 +70,7 @@ +--- a/wx+/no_flicker.h ++++ b/wx+/no_flicker.h +@@ -72,7 +72,7 @@ void setTextWithUrls(wxRichTextCtrl& ric ZEN_ON_SCOPE_EXIT(richCtrl.EndSuppressUndo()); //fix mouse scroll speed: why the FUCK is this even necessary! @@ -330,9 +315,9 @@ diff -Naur -x '*.orig' -x '*.rej' -x '*.git*' 11.4-1/wx+/no_flicker.h 11.4-2/wx+ //get rid of margins and space between text blocks/"paragraphs" richCtrl.SetMargins({0, 0}); ---- 11.20-0/FreeFileSync/Source/ui/progress_indicator.cpp 2022-04-18 09:49:31.917386558 -0400 -+++ 11.20-1/FreeFileSync/Source/ui/progress_indicator.cpp 2022-04-18 11:02:10.988781908 -0400 -@@ -878,12 +881,10 @@ +--- a/FreeFileSync/Source/ui/progress_indicator.cpp ++++ b/FreeFileSync/Source/ui/progress_indicator.cpp +@@ -878,12 +878,10 @@ dlgSizeBuf_(dlgSize) auto generateSquareBitmap = [&](const wxColor& fillCol, const wxColor& borderCol) { wxBitmap bmpSquare(this->GetCharHeight(), this->GetCharHeight()); //seems we don't need to pass 24-bit depth here even for high-contrast color schemes @@ -345,9 +330,9 @@ diff -Naur -x '*.orig' -x '*.rej' -x '*.git*' 11.4-1/wx+/no_flicker.h 11.4-2/wx+ return bmpSquare; }; pnl_.m_bitmapGraphKeyBytes->SetBitmap(generateSquareBitmap(getColorBytes(), getColorBytesRim())); ---- 11.25-0/wx+/rtl.h 2022-09-07 14:54:31.712631887 -0400 -+++ 11.25-1/wx+/rtl.h 2022-09-07 15:57:01.638891035 -0400 -@@ -70,8 +70,6 @@ +--- a/wx+/rtl.h ++++ b/wx+/rtl.h +@@ -70,8 +70,6 @@ void drawBitmapRtlMirror(wxDC& dc, const if (!buffer || buffer->GetSize() != rect.GetSize()) //[!] since we do a mirror, width needs to match exactly! buffer.emplace(rect.GetSize()); @@ -356,19 +341,55 @@ diff -Naur -x '*.orig' -x '*.rej' -x '*.git*' 11.4-1/wx+/no_flicker.h 11.4-2/wx+ wxMemoryDC memDc(*buffer); //copies scale factor from wxBitmap memDc.Blit(wxPoint(0, 0), rect.GetSize(), &dc, rect.GetTopLeft()); //blit in: background is mirrored due to memDc, dc having different layout direction! ---- 11.22-0/FreeFileSync/Source/ui/main_dlg.cpp 2022-06-26 12:01:15.634291415 -0400 -+++ 11.22-1/FreeFileSync/Source/ui/main_dlg.cpp 2022-06-26 14:44:38.556188935 -0400 -@@ -3595,7 +3590,6 @@ - }; - +--- a/FreeFileSync/Source/ui/main_dlg.cpp ++++ b/FreeFileSync/Source/ui/main_dlg.cpp +@@ -3586,7 +3586,6 @@ void MainDialog::onCfgGridContext(GridCo + auto addColorOption = [&](const wxColor& col, const wxString& name) + { wxBitmap bmpSquare(this->GetCharHeight(), this->GetCharHeight()); //seems we don't need to pass 24-bit depth here even for high-contrast color schemes - bmpSquare.SetScaleFactor(getDisplayScaleFactor()); { wxMemoryDC dc(bmpSquare); const wxColor borderCol(0xdd, 0xdd, 0xdd); //light grey ---- 11.22-0/wx+/image_tools.cpp 2022-06-26 16:29:25.668035003 -0400 -+++ 11.22-1/wx+/image_tools.cpp 2022-06-27 09:06:04.999244263 -0400 -@@ -188,7 +188,6 @@ +@@ -3619,7 +3618,6 @@ void MainDialog::onCfgGridContext(GridCo + + //show color picker + wxBitmap bmpColorPicker(this->GetCharHeight(), this->GetCharHeight()); //seems we don't need to pass 24-bit depth here even for high-contrast color schemes +- bmpColorPicker.SetScaleFactor(getDisplayScaleFactor()); + { + wxMemoryDC dc(bmpColorPicker); + const wxColor borderCol(0xdd, 0xdd, 0xdd); //light grey +@@ -3633,7 +3631,6 @@ void MainDialog::onCfgGridContext(GridCo + { + wxColourData colCfg; + colCfg.SetChooseFull(true); +- colCfg.SetChooseAlpha(false); + colCfg.SetColour(defaultColors[1].first); //tentative + + if (const ConfigView::Details* cfg = cfggrid::getDataView(*m_gridCfgHistory).getItem(selectedRows[0])) +@@ -3650,19 +3647,6 @@ void MainDialog::onCfgGridContext(GridCo + assert(col.Alpha() == 255); + return col; + }; +- wxColourDialog dlg(this, &colCfg); +- dlg.Center(); +- +- dlg.Bind(wxEVT_COLOUR_CHANGED, [&](wxColourDialogEvent& event2) +- { +- //show preview during color selection (Windows-only atm) +- cfggrid::getDataView(*m_gridCfgHistory).setBackColor(cfgFilePaths, fixColorPickerColor(event2.GetColour()), true /*previewOnly*/); +- m_gridCfgHistory->Refresh(); +- }); +- +- if (dlg.ShowModal() == wxID_OK) +- applyBackColor(fixColorPickerColor(dlg.GetColourData().GetColour())); +- else //shut off color preview + { + cfggrid::getDataView(*m_gridCfgHistory).setBackColor(cfgFilePaths, wxNullColour, true /*previewOnly*/); + m_gridCfgHistory->Refresh(); +--- a/wx+/image_tools.cpp ++++ b/wx+/image_tools.cpp +@@ -188,7 +188,6 @@ wxImage zen::createImageFromText(const w return wxNullImage; wxBitmap newBitmap(maxWidth, lineHeight * lineInfo.size()); //seems we don't need to pass 24-bit depth here even for high-contrast color schemes |