mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
Fix GSSendBezierPath. Fix includes for wraster files
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13271 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
243adf3ab6
commit
590c87e78b
12 changed files with 35 additions and 31 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2002-03-29 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
|
* Source/gsc/GSGState.m (-GSSendBezierPath:): Append path in all
|
||||||
|
cases.
|
||||||
|
(- GSRectFillList): Implement.
|
||||||
|
* Source/x11/XGServerWindow.m:
|
||||||
|
([XGServer -windowbounds:]): Don't get screen bounds.
|
||||||
|
|
||||||
|
* Source/x11/*.c: Fix includes.
|
||||||
|
|
||||||
2002-03-27 Adam Fedor <fedor@gnu.org>
|
2002-03-27 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Source/x11/GNUmakefile: Get headers from right place.
|
* Source/x11/GNUmakefile: Get headers from right place.
|
||||||
|
|
|
@ -37,8 +37,6 @@
|
||||||
path = [NSBezierPath new]; \
|
path = [NSBezierPath new]; \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define AINDEX 5
|
|
||||||
|
|
||||||
@implementation GSGState
|
@implementation GSGState
|
||||||
|
|
||||||
/* Designated initializer. */
|
/* Designated initializer. */
|
||||||
|
@ -578,15 +576,16 @@
|
||||||
|
|
||||||
- (void) GSSendBezierPath: (NSBezierPath *)newpath
|
- (void) GSSendBezierPath: (NSBezierPath *)newpath
|
||||||
{
|
{
|
||||||
if (path)
|
CHECK_PATH;
|
||||||
[path appendBezierPath: path];
|
[path appendBezierPath: path];
|
||||||
else
|
|
||||||
ASSIGN(path, newpath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) GSRectFillList: (const NSRect *)rects : (int) count
|
- (void) GSRectFillList: (const NSRect *)rects : (int) count
|
||||||
{
|
{
|
||||||
[self notImplemented: _cmd];
|
int i;
|
||||||
|
for (i=0; i < count; i++)
|
||||||
|
[self DPSrectfill: NSMinX(rects[i]) : NSMinY(rects[i])
|
||||||
|
: NSWidth(rects[i]) : NSHeight(rects[i])];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)DPSimage: (NSAffineTransform*) matrix
|
- (void)DPSimage: (NSAffineTransform*) matrix
|
||||||
|
|
|
@ -43,7 +43,6 @@
|
||||||
#include "x11/XGDragView.h"
|
#include "x11/XGDragView.h"
|
||||||
#include "x11/XGInputServer.h"
|
#include "x11/XGInputServer.h"
|
||||||
|
|
||||||
#define MAX_SCREENS 100
|
|
||||||
#define XDPY (((RContext *)context)->dpy)
|
#define XDPY (((RContext *)context)->dpy)
|
||||||
#define XDRW (((RContext *)context)->drawable)
|
#define XDRW (((RContext *)context)->drawable)
|
||||||
#define XSCR (((RContext *)context)->screen_number)
|
#define XSCR (((RContext *)context)->screen_number)
|
||||||
|
@ -1714,8 +1713,6 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
||||||
NSRect rect;
|
NSRect rect;
|
||||||
|
|
||||||
window = WINDOW_WITH_TAG(win);
|
window = WINDOW_WITH_TAG(win);
|
||||||
if (!window && win < MAX_SCREENS)
|
|
||||||
window = [self _rootWindowForScreen: win];
|
|
||||||
if (!window)
|
if (!window)
|
||||||
return NSZeroRect;
|
return NSZeroRect;
|
||||||
|
|
||||||
|
@ -1855,8 +1852,6 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
||||||
gswindow_device_t *window;
|
gswindow_device_t *window;
|
||||||
|
|
||||||
window = WINDOW_WITH_TAG(win);
|
window = WINDOW_WITH_TAG(win);
|
||||||
if (!window && win < MAX_SCREENS)
|
|
||||||
window = [self _rootWindowForScreen: win];
|
|
||||||
if (!window)
|
if (!window)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -1986,7 +1981,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: Doesn't take into account any offset added to the window
|
/* FIXME: Doesn't take into account any offset added to the window
|
||||||
(from PSsetXgcdrawable) or possible scaling (unlikely in X-windows,
|
(from PSsetgcdrawable) or possible scaling (unlikely in X-windows,
|
||||||
but what about other devices?) */
|
but what about other devices?) */
|
||||||
rect.origin.y = NSHeight(window->xframe) - NSMaxY(rect);
|
rect.origin.y = NSHeight(window->xframe) - NSMaxY(rect);
|
||||||
|
|
||||||
|
@ -2056,11 +2051,11 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
||||||
GrabModeAsync, GrabModeAsync, None, None, CurrentTime);
|
GrabModeAsync, GrabModeAsync, None, None, CurrentTime);
|
||||||
|
|
||||||
if (ret != GrabSuccess)
|
if (ret != GrabSuccess)
|
||||||
NSLog(@"Failed to grab pointer\n");
|
NSDebugLLog(@"XGTrace", @"Failed to grab pointer\n");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
grab_window = window;
|
grab_window = window;
|
||||||
NSDebugLLog(@"NSWindow", @"Grabbed pointer\n");
|
NSDebugLLog(@"XGTrace", @"Grabbed pointer\n");
|
||||||
}
|
}
|
||||||
return (ret == GrabSuccess) ? YES : NO;
|
return (ret == GrabSuccess) ? YES : NO;
|
||||||
}
|
}
|
||||||
|
@ -2580,6 +2575,7 @@ _computeDepth(int class, int bpp)
|
||||||
Display *display;
|
Display *display;
|
||||||
int res_x, res_y;
|
int res_x, res_y;
|
||||||
|
|
||||||
|
display = XDPY;
|
||||||
if (screen_num < 0 || screen_num >= ScreenCount(XDPY))
|
if (screen_num < 0 || screen_num >= ScreenCount(XDPY))
|
||||||
{
|
{
|
||||||
NSLog(@"Invalidparam: no screen %d", screen_num);
|
NSLog(@"Invalidparam: no screen %d", screen_num);
|
||||||
|
|
|
@ -32,10 +32,8 @@
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "StdCmap.h"
|
#include "x11/wraster.h"
|
||||||
|
#include "x11/StdCmap.h"
|
||||||
#include "xrtools.h"
|
|
||||||
|
|
||||||
|
|
||||||
extern void _wraster_change_filter(int type);
|
extern void _wraster_change_filter(int type);
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#include "bench.h"
|
#include "bench.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "xrtools.h"
|
#include "x11/wraster.h"
|
||||||
|
|
||||||
#ifdef XSHM
|
#ifdef XSHM
|
||||||
extern Pixmap R_CreateXImageMappedPixmap(RContext *context, RXImage *ximage);
|
extern Pixmap R_CreateXImageMappedPixmap(RContext *context, RXImage *ximage);
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "xrtools.h"
|
#include "x11/wraster.h"
|
||||||
|
|
||||||
|
|
||||||
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "xrtools.h"
|
#include "x11/wraster.h"
|
||||||
|
|
||||||
|
|
||||||
static RImage *renderHGradient(unsigned width, unsigned height,
|
static RImage *renderHGradient(unsigned width, unsigned height,
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
|
||||||
#include "xrtools.h"
|
#include "x11/wraster.h"
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include "xrtools.h"
|
#include "x11/wraster.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "xrtools.h"
|
#include "x11/wraster.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
#endif /* XSHM */
|
#endif /* XSHM */
|
||||||
|
|
||||||
#include "xrtools.h"
|
#include "x11/wraster.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef XSHM
|
#ifdef XSHM
|
||||||
|
|
|
@ -4,6 +4,7 @@ Copyright: LGPL
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: ftp://ftp.gnustep.org/pub/gnustep/core/%{gs_name}-%{gs_version}.tar.gz
|
Source: ftp://ftp.gnustep.org/pub/gnustep/core/%{gs_name}-%{gs_version}.tar.gz
|
||||||
Requires: gnustep-gui
|
Requires: gnustep-gui
|
||||||
|
Obsoletes: gnustep-xgps
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a backend for the GNUstep gui Library which allows you to use
|
This is a backend for the GNUstep gui Library which allows you to use
|
||||||
|
|
Loading…
Reference in a new issue