From 19fb0131617a82ddf9732256ee5ee476e02a8599 Mon Sep 17 00:00:00 2001 From: David Schmidt Date: Sat, 8 Jan 2011 14:07:06 +0000 Subject: [PATCH] Add a couple of diagnostic messages to printer support --- src/printer.cpp | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/printer.cpp b/src/printer.cpp index e6676a1..085478b 100644 --- a/src/printer.cpp +++ b/src/printer.cpp @@ -1,3 +1,24 @@ +/* + GSport - an Apple //gs Emulator + Copyright (C) 2010 - 2011 by GSport contributors + + Based on the KEGS emulator written by and Copyright (C) 2003 Kent Dickey + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + /* * Copyright (C) 2002-2004 The DOSBox Team * @@ -323,7 +344,7 @@ void CPrinter::updateFont() if (FT_New_Face(FTlib, fontName, 0, &curFont)) { - printf("Unable to load font %s"); + printf("Unable to load font %s\n"); //LOG_MSG("Unable to load font %s", fontName); curFont = NULL; } @@ -1821,7 +1842,7 @@ SDL_FreeSurface(image);*/ psfile = fopen(fname, "wb"); if (!psfile) { - //LOG(LOG_MISC,LOG_ERROR)("PRINTER: Can't open file %s for printer output", fname); + printf("PRINTER: Can't open file %s for printer output", fname); return; } @@ -2043,4 +2064,4 @@ extern "C" void printer_feed() { if(defaultPrinter == NULL) return; defaultPrinter->formFeed(); -} \ No newline at end of file +}