2 Commits

Author SHA1 Message Date
GenevensiS 43ecff6b3e refactor 2026-04-19 10:07:52 +02:00
Valyth 68237e6d87 Replace symbol buffer logical blits with explicit pixel compositing
Expansion symbol rendering relied on wxDC logical raster ops
(wxOR / wxAND_INVERT) during buffer composition. On wxGTK this
produced incorrect symbol/background inversion, likely due to
backend differences in logical-function handling.

This replaces the logical blits in combineBuffers() with explicit
per-pixel compositing that preserves the intended bitwise behavior
while producing consistent results across platforms.

Tested:
- Linux: fixes incorrect expansion symbol rendering/export
- Windows: no regression observed in rendering/export
2026-04-17 18:39:16 -04:00
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -40,8 +40,7 @@ const char* MSE_AUTHORS[] = {
"Olivier Bocksberger (G-e-n-e-v-e-n-s-i-S)", "Olivier Bocksberger (G-e-n-e-v-e-n-s-i-S)",
"Brendan Hagan (haganbmj)", "Brendan Hagan (haganbmj)",
"Thomas Tkacz (TomTkacz)", "Thomas Tkacz (TomTkacz)",
"CaiCai (247321453)", "CaiCai (247321453)"
"Amy Markey (amyinspace)"
}; };
void AboutWindow::draw(DC& dc) { void AboutWindow::draw(DC& dc) {
+1 -1
View File
@@ -50,7 +50,7 @@ SetWindow::SetWindow(Window* parent, const SetP& set)
SetIcon(load_resource_icon(_("app"))); SetIcon(load_resource_icon(_("app")));
// avoid flicker // avoid flicker
SetBackgroundStyle(wxBG_STYLE_SYSTEM); SetBackgroundStyle(wxBG_STYLE_PAINT);
// initialize menu bar // initialize menu bar
auto menuBar = new wxMenuBar(); auto menuBar = new wxMenuBar();