Aggiunto salvataggio dimensioni font e interlinea su prassi.ini

Eliminato size 7 perche' creava scrosci di adrenalina alla Patrizia


git-svn-id: svn://10.65.10.50/trunk@870 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1995-01-18 08:12:26 +00:00
parent 0a93dba34d
commit 8b2cb80657
2 changed files with 12 additions and 3 deletions

View File

@ -56,7 +56,7 @@ END
LIST MSK_1_SIZE 3
BEGIN
PROMPT 31 6 "Carattere "
ITEM "7|7"
// ITEM "7|7"
ITEM "8|8"
ITEM "10|10"
ITEM "12|12"

View File

@ -20,6 +20,7 @@
#include <urldefid.h>
#include <utility.h>
#include <viswin.h>
#include <config.h>
#include <bagn001a.h>
@ -695,7 +696,12 @@ TPrinter::TPrinter()
_curprn = i;
break;
}
}
}
TConfig cnf (CONFIG_GENERAL, "Stampa");
_ch_size = atoi(cnf.get("Size",NULL,-1,"X"));
_lines_per_inch = atoi(cnf.get("Lines",NULL,-1,"X"));
#else
_isgraphics = FALSE;
@ -1327,7 +1333,10 @@ void TPrinter::set()
if (k == K_INS)
{
// tutto resta com'e'
mask.save ();
mask.save ();
TConfig cnf (CONFIG_GENERAL, "Stampa");
cnf.set("Size", mask.get(MSK_1_SIZE));
cnf.set("Lines",mask.get(MSK_1_LINES));
}
if (k == K_ESC || k == K_ENTER)
{