mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 17:40:48 +00:00
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:
parent
362b86f867
commit
8078d95c67
5 changed files with 20 additions and 30 deletions
|
@ -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>
|
1999-06-30 Michael Hanni <mhanni@sprintmail.com>
|
||||||
|
|
||||||
* Source/NSMenuView.m: fixes:
|
* Source/NSMenuView.m: fixes:
|
||||||
|
|
|
@ -119,6 +119,7 @@
|
||||||
#include <AppKit/NSParagraphStyle.h>
|
#include <AppKit/NSParagraphStyle.h>
|
||||||
#include <AppKit/NSPasteboard.h>
|
#include <AppKit/NSPasteboard.h>
|
||||||
#include <AppKit/NSPopUpButton.h>
|
#include <AppKit/NSPopUpButton.h>
|
||||||
|
#include <AppKit/NSPopUpButtonCell.h>
|
||||||
#include <AppKit/NSPrinter.h>
|
#include <AppKit/NSPrinter.h>
|
||||||
#include <AppKit/NSPrintInfo.h>
|
#include <AppKit/NSPrintInfo.h>
|
||||||
#include <AppKit/NSPrintOperation.h>
|
#include <AppKit/NSPrintOperation.h>
|
||||||
|
|
|
@ -328,6 +328,7 @@ NSApplication *NSApp = nil;
|
||||||
RELEASE(pool);
|
RELEASE(pool);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[GSCurrentContext() destroyContext];
|
||||||
NSDebugLog(@"NSApplication end of run loop\n");
|
NSDebugLog(@"NSApplication end of run loop\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -522,14 +522,10 @@ drawRun(GSTextRun *run, NSPoint origin, GSDrawInfo *draw)
|
||||||
buf[i] = '\0';
|
buf[i] = '\0';
|
||||||
DPSmoveto(draw->ctxt, origin.x, origin.y);
|
DPSmoveto(draw->ctxt, origin.x, origin.y);
|
||||||
DPSshow(draw->ctxt, buf);
|
DPSshow(draw->ctxt, buf);
|
||||||
/* FIXME - Figure out why DGS fails to flush strings and remove this
|
#ifdef XDPS_BACKEND_LIBRARY
|
||||||
aweful hack which doesn't even work all the time: */
|
/* FIXME: Hack to force DGS to flush the text */
|
||||||
DPSmoveto(draw->ctxt, origin.x, origin.y);
|
DPSrectfill(draw->ctxt, 0, 0, 0.5, 0.5);
|
||||||
DPSshow(draw->ctxt, buf);
|
#endif
|
||||||
DPSmoveto(draw->ctxt, origin.x, origin.y);
|
|
||||||
DPSshow(draw->ctxt, buf);
|
|
||||||
DPSmoveto(draw->ctxt, origin.x, origin.y);
|
|
||||||
DPSshow(draw->ctxt, buf);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -544,14 +540,10 @@ drawRun(GSTextRun *run, NSPoint origin, GSDrawInfo *draw)
|
||||||
DPSshow(draw->ctxt, buf);
|
DPSshow(draw->ctxt, buf);
|
||||||
origin.x += run->glyphs[i].adv.width;
|
origin.x += run->glyphs[i].adv.width;
|
||||||
}
|
}
|
||||||
/* FIXME - Figure out why DGS fails to flush strings and remove this
|
#ifdef XDPS_BACKEND_LIBRARY
|
||||||
aweful hack which doesn't even work all the time: */
|
/* FIXME: Hack to force DGS to flush the text */
|
||||||
DPSmoveto(draw->ctxt, origin.x, origin.y);
|
DPSrectfill(draw->ctxt, 0, 0, 0.5, 0.5);
|
||||||
DPSshow(draw->ctxt, buf);
|
#endif
|
||||||
DPSmoveto(draw->ctxt, origin.x, origin.y);
|
|
||||||
DPSshow(draw->ctxt, buf);
|
|
||||||
DPSmoveto(draw->ctxt, origin.x, origin.y);
|
|
||||||
DPSshow(draw->ctxt, buf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (run->underline)
|
if (run->underline)
|
||||||
|
|
|
@ -55,21 +55,9 @@ void NSDrawGrayBezel(NSRect aRect, NSRect clipRect)
|
||||||
{}
|
{}
|
||||||
void NSDrawGroove(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 NSDrawDownArrow(NSPoint aPoint)
|
||||||
{}
|
|
||||||
void PSrlineto(float x, float y)
|
|
||||||
{}
|
|
||||||
void PSsetgray(float num)
|
|
||||||
{}
|
|
||||||
void PSstroke(void)
|
|
||||||
{}
|
|
||||||
void PSsetlinewidth(float width)
|
|
||||||
{}
|
|
||||||
void PSgrestore(void)
|
|
||||||
{}
|
|
||||||
void PSgsave(void)
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
/* Dummy wraps */
|
/* Dummy wraps */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue