default.url Migliorato supporto per icone alternative

mask.cpp
printwin.cpp Corretta stampa su generica/solo testo


git-svn-id: svn://10.65.10.50/trunk@3196 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1996-07-17 14:10:41 +00:00
parent de0bd3f1c9
commit bc93bf3827
3 changed files with 23 additions and 8 deletions

View File

@ -1,6 +1,9 @@
#ifndef APPNAME
#define APPNAME PRASSI
#define QAPPNAME "PRASSI"
#endif
#ifndef LIBDIR
#define LIBDIR f:\xvt.403\win_x86\ptk\lib
#endif

View File

@ -761,8 +761,13 @@ WINDOW TMask::read_page(
}
else
{
if (_pages == 0) rect = r;
else r = rect;
if (_pages == 0)
{
if (!is_sheetmask())
rect = r;
}
else
r = rect;
}
}

View File

@ -208,15 +208,22 @@ void TPrintwin::paint_row(long j)
}
}
}
} else
}
else
{
set_font(printer().fontname(), XVT_FS_NONE, _char_size);
TString s(_txt.line(j));
#if XVT_OS == XVT_OS_WIN || XVT_OS == XVT_OS_NT
if ((j % _realformlen) == 0 && (j != 0)) // Questo e' il patch per TTY.DRV.
s.insert("\n"); // Quando uscira' un nuovo driver, si dovra' controllare
#endif // se esiste ancora questo piccolo bigol.
xvt_dwin_draw_text(win(), 0, y, (char*)(const char*)s, -1);
// Questa e' la patch per TTY.DRV.
if (j > 0 && (j % _realformlen) == 0)
{
TString s(512);
s << "\015" << _txt.line(j-1) << '\n';
s << _txt.line(j);
xvt_dwin_draw_text(win(), 0, y, (char*)(const char*)s, -1);
}
else
#endif
xvt_dwin_draw_text(win(), 0, y, (char*)(const char*)_txt.line(j), -1);
}
}