From 8b2cb806571c6911addbc114a7c160ee15482e9c Mon Sep 17 00:00:00 2001 From: villa Date: Wed, 18 Jan 1995 08:12:26 +0000 Subject: [PATCH] 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 --- include/bagn001a.uml | 2 +- include/printer.cpp | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/include/bagn001a.uml b/include/bagn001a.uml index d954cb679..aa4d66854 100755 --- a/include/bagn001a.uml +++ b/include/bagn001a.uml @@ -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" diff --git a/include/printer.cpp b/include/printer.cpp index 0f012489a..24b40adf2 100755 --- a/include/printer.cpp +++ b/include/printer.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include @@ -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) {