Upate of xdps from xgps

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4512 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 1999-07-03 22:20:08 +00:00
parent 9959a33653
commit 3382630788
5 changed files with 20 additions and 30 deletions

View file

@ -1,3 +1,11 @@
1999-07-03 Adam Fedor <fedor@gnu.org>
* Source/NSApplication.m (-run): Added destroyContext (so we can
remove backend run method).
* Source/NSStringDrawing.m (drawRun): Better hack to work around
DGS bug that fails to flush strings (XDPS backend only).
1999-06-30 Michael Hanni <mhanni@sprintmail.com>
* Source/NSMenuView.m: fixes:

View file

@ -119,6 +119,7 @@
#include <AppKit/NSParagraphStyle.h>
#include <AppKit/NSPasteboard.h>
#include <AppKit/NSPopUpButton.h>
#include <AppKit/NSPopUpButtonCell.h>
#include <AppKit/NSPrinter.h>
#include <AppKit/NSPrintInfo.h>
#include <AppKit/NSPrintOperation.h>

View file

@ -328,6 +328,7 @@ NSApplication *NSApp = nil;
RELEASE(pool);
}
[GSCurrentContext() destroyContext];
NSDebugLog(@"NSApplication end of run loop\n");
}

View file

@ -522,14 +522,10 @@ drawRun(GSTextRun *run, NSPoint origin, GSDrawInfo *draw)
buf[i] = '\0';
DPSmoveto(draw->ctxt, origin.x, origin.y);
DPSshow(draw->ctxt, buf);
/* FIXME - Figure out why DGS fails to flush strings and remove this
aweful hack which doesn't even work all the time: */
DPSmoveto(draw->ctxt, origin.x, origin.y);
DPSshow(draw->ctxt, buf);
DPSmoveto(draw->ctxt, origin.x, origin.y);
DPSshow(draw->ctxt, buf);
DPSmoveto(draw->ctxt, origin.x, origin.y);
DPSshow(draw->ctxt, buf);
#ifdef XDPS_BACKEND_LIBRARY
/* FIXME: Hack to force DGS to flush the text */
DPSrectfill(draw->ctxt, 0, 0, 0.5, 0.5);
#endif
}
else
{
@ -544,14 +540,10 @@ drawRun(GSTextRun *run, NSPoint origin, GSDrawInfo *draw)
DPSshow(draw->ctxt, buf);
origin.x += run->glyphs[i].adv.width;
}
/* FIXME - Figure out why DGS fails to flush strings and remove this
aweful hack which doesn't even work all the time: */
DPSmoveto(draw->ctxt, origin.x, origin.y);
DPSshow(draw->ctxt, buf);
DPSmoveto(draw->ctxt, origin.x, origin.y);
DPSshow(draw->ctxt, buf);
DPSmoveto(draw->ctxt, origin.x, origin.y);
DPSshow(draw->ctxt, buf);
#ifdef XDPS_BACKEND_LIBRARY
/* FIXME: Hack to force DGS to flush the text */
DPSrectfill(draw->ctxt, 0, 0, 0.5, 0.5);
#endif
}
if (run->underline)

View file

@ -55,21 +55,9 @@ void NSDrawGrayBezel(NSRect aRect, NSRect clipRect)
{}
void NSDrawGroove(NSRect aRect, NSRect clipRect)
{}
void PSlineto(float x, float y)
void NSDrawPopupNibble(NSPoint aPoint)
{}
void PSmoveto(float x, float y)
{}
void PSrlineto(float x, float y)
{}
void PSsetgray(float num)
{}
void PSstroke(void)
{}
void PSsetlinewidth(float width)
{}
void PSgrestore(void)
{}
void PSgsave(void)
void NSDrawDownArrow(NSPoint aPoint)
{}
/* Dummy wraps */