CtrlCore: Wayland fixes, ide: Upgrade now using blitz if enabled as build method default

This commit is contained in:
Mirek Fidler 2025-02-13 09:45:45 +01:00
parent 3bf10b2ec5
commit f499a97052
4 changed files with 7 additions and 3 deletions

View file

@ -435,6 +435,9 @@ void Ctrl::WndInvalidateRect(const Rect& r)
rr.right = (r.right + 1) / 2;
rr.bottom = (r.bottom + 1) / 2;
}
if(IsWayland())
rr.Inflate(2, 2); // TODO: This is temporary fix
// as gtk3 dropped thread locking, we need to push invalid rectangles onto main loop
for(Win& win : wins) {

View file

@ -421,7 +421,7 @@ void ChHostSkin()
Gtk_New("scrollbar.horizontal.bottom contents trough slider");
GtkSize(sz);
s.barsize = s.thumbwidth = DPI(sz.cy);
s.barsize = s.thumbwidth = Ctrl::SCL(sz.cy);
s.thumbmin = max(minslider, 2 * s.barsize);
sz.cx = 4 * sz.cy;

View file

@ -33,9 +33,8 @@ void Ide::UpgradeTheIDE()
#endif
release.createmap = false;
release.version.Clear();
release.def.blitz = false;
release.def.debug = false;
release.package.Clear();
release.def.blitz = MapFlag(GetMethodVars(method), "RELEASE_BLITZ");
targetmode = 1;

View file

@ -1300,6 +1300,8 @@ String GetGitBranchRaw(const String& dir);
Index<String> GetAllNests(bool sleep = false);
bool MapFlag(const VectorMap<class String, class String>& map, const char *key);
#include "urepo.h"
#endif