"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "uppsrc/ide/Errors.cpp" between
upp-x11-src-13648.tar.gz and upp-x11-src-13659.tar.gz

About: Ultimate++ is a C++ cross-platform rapid application development framework. Stable release.

Errors.cpp  (upp-x11-src-13648):Errors.cpp  (upp-x11-src-13659)
skipping to change at line 388 skipping to change at line 388
void Ide::TopAlignedDisplay::Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) const void Ide::TopAlignedDisplay::Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) const
{ {
w.DrawRect(r, paper); w.DrawRect(r, paper);
w.DrawText(r.left, r.top, AsString(q)); w.DrawText(r.left, r.top, AsString(q));
} }
WString Ide::FormatErrorLine(const String& text, int& linecy) WString Ide::FormatErrorLine(const String& text, int& linecy)
{ {
WString txt; WString txt;
int cx = error.HeaderObject().GetTabWidth(2) - error.HeaderTab(2).GetMarg in() * 2; int cx = max(GetStdFontCy() * 30, error.HeaderObject().GetTabWidth(2) - e rror.HeaderTab(2).GetMargin() * 2);
int x = 0; int x = 0;
Font fnt = StdFont(); Font fnt = StdFont();
WString h = text.ToWString(); WString h = text.ToWString();
linecy = fnt.GetCy(); linecy = fnt.GetCy();
const wchar *s = h; const wchar *s = h;
while(findarg(*s, ' ', '\t') >= 0) while(findarg(*s, ' ', '\t') >= 0)
s++; s++;
while(*s) { while(*s) {
int chcx = fnt[*s]; int chcx = fnt[*s];
if(x + chcx > cx) { if(x + chcx > cx) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)