CtrlCore: Fixed NOGTK issue

git-svn-id: svn://ultimatepp.org/upp/trunk@12397 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-10-23 08:03:33 +00:00
parent 663261ac48
commit 46e486ff48
3 changed files with 1 additions and 4 deletions

View file

@ -168,7 +168,7 @@ void Ctrl::ScrollView(const Rect& _r, int dx, int dy)
#else
if(IsFullRefresh() || !IsVisible())
return;
if(isdhctrl) {
if(hasdhctrl) {
Refresh(_r);
return;
}

View file

@ -115,8 +115,6 @@ CommonFontInfo XftGetFontInfoSys(Font font)
if(xftfont) {
fi.ascent = (int16)xftfont->ascent;
fi.descent = (int16)xftfont->descent;
fi.height = fi.ascent + fi.descent;
fi.lineheight = (int16)xftfont->height;
fi.external = 0;
fi.internal = 0;
fi.overhang = 0;

View file

@ -234,7 +234,6 @@ void AutoCrop(Image *m, int count, RGBA bg)
for(int i = 1; i < count; i++)
r.Union(FindBounds(m[i], bg));
for(int i = 0; i < count; i++) {
Rect rr = r.GetSize();
Point p1 = m[i].GetHotSpot() - r.TopLeft();
Point p2 = m[i].Get2ndSpot() - r.TopLeft();
m[i] = WithHotSpots(Crop(m[i], r), p1.x, p1.y, p2.x, p2.y);