[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Tile-drawing fixes

From: Eric Wasylishen
Subject: [PATCH] Tile-drawing fixes
Date: Fri, 11 Dec 2009 17:45:45 -0700

I'm working on converting the √Čtoil√© Camaelon themes to GNUstep themes, and 
found some bugs in the tile drawing code in the process.

The first patch fixes some rect calculations in GSThemeTools.m: 
initWithNinePatchImage: and scaleFillRect:. The second patch, for back, turns 
on the CAIRO_EXTEND_PAD option for the Cairo pattern used to draw images. 
Without this, the edges of image become soft when scaled up, so you end up 
seeing 'seams' between tiles.

Here's a screenshot of a test tile I made applied to NSButton, with my patches:
The art and xlib backends also produce correct output.


Attachment: GSThemeTools.patch
Description: Binary data

Attachment: CairoImageScaling.patch
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]