From 3950112be569f0157f86bc3e402ed50c91226024 Mon Sep 17 00:00:00 2001 From: fedor Date: Tue, 29 Oct 2002 03:48:13 +0000 Subject: [PATCH] Use GSsetalpha git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14864 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/gsc/GSStreamContext.m | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c0570bd..d284cdb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-28 Adam Fedor + + * Source/gsc/GSStreamContext.m (-DPSsetalpha:): Use GSsetalpha + as defined in frontend, for printers that don't support setalpha. + 2002-10-27 Adam Fedor * Tools/font_cacher.m: Add @end (Reported by Caba Conti diff --git a/Source/gsc/GSStreamContext.m b/Source/gsc/GSStreamContext.m index 3d5b21d..e453eb2 100644 --- a/Source/gsc/GSStreamContext.m +++ b/Source/gsc/GSStreamContext.m @@ -95,7 +95,9 @@ - (void) DPSsetalpha: (float)a { [super DPSsetalpha: a]; - fprintf(gstream, "%g setalpha\n", a); + /* This needs to be defined base on the the language level, etc. in + the Prolog section. */ + fprintf(gstream, "%g GSsetalpha\n", a); } - (void) DPSsetcmykcolor: (float)c : (float)m : (float)y : (float)k @@ -555,12 +557,12 @@ /* ----------------------------------------------------------------------- */ /* Client functions */ /* ----------------------------------------------------------------------- */ -- (void) DPSPrintf: (char *)fmt : (va_list)args +- (void) DPSPrintf: (const char *)fmt : (va_list)args { vfprintf(gstream, fmt, args); } -- (void) DPSWriteData: (char *)buf : (unsigned int)count +- (void) DPSWriteData: (const char *)buf : (unsigned int)count { /* Not sure here. Should we translate to ASCII if it's not already? */