Commit graph

709 commits

Author SHA1 Message Date
Fred Kiefer
db2999ee4d Patch by Matt Rice to get OpenGL working again on X11.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27816 72102866-910b-0410-8b05-ffd578937521
2009-02-08 18:36:25 +00:00
Fred Kiefer
33ccb792b2 Correct bug in last change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27800 72102866-910b-0410-8b05-ffd578937521
2009-02-06 10:11:30 +00:00
Fred Kiefer
dac60cb4d2 Better handling of clip copying when the clip is not representable by cairo.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27797 72102866-910b-0410-8b05-ffd578937521
2009-02-05 18:44:18 +00:00
Fred Kiefer
958fc4f709 Fix some compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27796 72102866-910b-0410-8b05-ffd578937521
2009-02-05 18:27:43 +00:00
Richard Frith-MacDonald
fb8176ebc4 temporarily comment out code to fix #25482
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27769 72102866-910b-0410-8b05-ffd578937521
2009-02-03 18:18:25 +00:00
Richard Frith-MacDonald
e71618164d Fix typo in method to set parent window of a child, optimise color handling in themes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27742 72102866-910b-0410-8b05-ffd578937521
2009-01-31 09:59:32 +00:00
Fred Kiefer
f99e97c43e Implement new method -setPartentWindow:forChildWindow: for X and
Windows.

Adjust y coordinate of point in compositeGState:... for cairo. This
solves bug #24709. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27718 72102866-910b-0410-8b05-ffd578937521
2009-01-29 09:32:32 +00:00
Riccardo Mottola
d9f8287ba9 fix for big endian machines
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27685 72102866-910b-0410-8b05-ffd578937521
2009-01-25 13:07:01 +00:00
Riccardo Mottola
d3974d45dc Optimized and correct handling of 16 bit in _get_8_bits()
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27669 72102866-910b-0410-8b05-ffd578937521
2009-01-24 17:44:11 +00:00
Wolfgang Lux
993a5d976b Set the WM protocols supported by a window according to its style
mask. This fixes an issue where an application could be deactivated
under Window Maker when a submenu is closed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27623 72102866-910b-0410-8b05-ffd578937521
2009-01-17 17:48:19 +00:00
Fred Kiefer
af8b2e7883 Give more information on failed font face access.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27587 72102866-910b-0410-8b05-ffd578937521
2009-01-13 00:34:14 +00:00
Fred Kiefer
cf452fb2b4 Pure white space cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27507 72102866-910b-0410-8b05-ffd578937521
2009-01-04 15:56:09 +00:00
Wolfgang Lux
f45b5b41a2 Fix an issue where the X11 backend could use incorrect modifier key
settings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27358 72102866-910b-0410-8b05-ffd578937521
2008-12-19 23:01:04 +00:00
Nicola Pero
39076b64a9 Removed GNUSTEP_CORE_SOFTWARE=YES from makefiles and instead set PACKAGE_NAME=gnustep-back
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27349 72102866-910b-0410-8b05-ffd578937521
2008-12-19 13:05:05 +00:00
Nicola Pero
417a0e2cbf Set GNUSTEP_CORE_SOFTWARE to YES so that gnustep-back is installed by default in SYSTEM if gnustep-make has been configured with --disable-packages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27335 72102866-910b-0410-8b05-ffd578937521
2008-12-18 18:51:49 +00:00
Fred Kiefer
c6461004e3 Set cbThis element of GLYPHSET structure before calling Windows funtion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27325 72102866-910b-0410-8b05-ffd578937521
2008-12-17 20:40:25 +00:00
Wolfgang Lux
0981aebea3 Fix two issues with Window Maker.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27296 72102866-910b-0410-8b05-ffd578937521
2008-12-15 20:47:06 +00:00
Fred Kiefer
b644571f1a Correct test for the need of an image conversion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27279 72102866-910b-0410-8b05-ffd578937521
2008-12-11 21:03:51 +00:00
Wolfgang Lux
418cae5d53 Add method to XGServer to avoid blocking the run loop when the X event
queue is not empty.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27275 72102866-910b-0410-8b05-ffd578937521
2008-12-10 20:30:09 +00:00
Richard Frith-MacDonald
aeddc7b908 Fix #24671
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27192 72102866-910b-0410-8b05-ffd578937521
2008-12-02 22:51:34 +00:00
Wolfgang Lux
8dddc6afcb Fix for bug #24707.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27101 72102866-910b-0410-8b05-ffd578937521
2008-11-20 16:51:33 +00:00
Fred Kiefer
01b5c75e8f For cairo convert the bitmap, when the format is unsupported.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27014 72102866-910b-0410-8b05-ffd578937521
2008-11-06 09:33:13 +00:00
Fred Kiefer
ad0a88c152 Check whether the X server supports shm pixmaps.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26970 72102866-910b-0410-8b05-ffd578937521
2008-10-26 20:12:43 +00:00
Fred Kiefer
04974644c9 Implement transparent windows on MS Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26963 72102866-910b-0410-8b05-ffd578937521
2008-10-24 17:35:45 +00:00
Fred Kiefer
1802f35b22 In XwindowBuffer get the default visual and depth from the XGServer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26961 72102866-910b-0410-8b05-ffd578937521
2008-10-24 16:42:38 +00:00
Fred Kiefer
c6c8160a30 Correct code for double parent handling.
Patch by Wolfgang Lux <wolfgang.lux@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26950 72102866-910b-0410-8b05-ffd578937521
2008-10-22 07:36:10 +00:00
Fred Kiefer
6c257ccc1f Removed left over unused variable in windowbounds:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26927 72102866-910b-0410-8b05-ffd578937521
2008-10-17 15:37:26 +00:00
Fred Kiefer
6d3948c2cf Remove unused parameters for rect conversion on windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26926 72102866-910b-0410-8b05-ffd578937521
2008-10-17 15:22:41 +00:00
Fred Kiefer
7a19a2cd69 Add change missing in last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26925 72102866-910b-0410-8b05-ffd578937521
2008-10-17 14:57:03 +00:00
Fred Kiefer
f0ff2b2bb7 Further cleanup of windows server code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26924 72102866-910b-0410-8b05-ffd578937521
2008-10-17 14:49:02 +00:00
Fred Kiefer
55ddd077cb Better image handling on Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26915 72102866-910b-0410-8b05-ffd578937521
2008-10-14 18:57:15 +00:00
Fred Kiefer
d6fc8b8e74 Try to keep the visual of art consistent with the one used by X.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26849 72102866-910b-0410-8b05-ffd578937521
2008-09-14 21:22:54 +00:00
Fred Kiefer
cc5d04cdc4 Try to handle endianess differences better in the art backend.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26813 72102866-910b-0410-8b05-ffd578937521
2008-08-19 17:25:10 +00:00
Fred Kiefer
fc441f9bc5 Add missing window caching for minimized check.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26809 72102866-910b-0410-8b05-ffd578937521
2008-08-14 06:33:04 +00:00
Fred Kiefer
ff0796c5d4 Patch by Hubert Chathi <hubert@uhoreg.ca> to handle window minimization
on EWMH systems better.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26795 72102866-910b-0410-8b05-ffd578937521
2008-07-19 21:17:42 +00:00
Fred Kiefer
2c01043f5d Correct the sign of the descender in the bounding box.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26760 72102866-910b-0410-8b05-ffd578937521
2008-07-12 08:02:37 +00:00
Fred Kiefer
c6f39a9553 Correct the setting of fontBBoxCorrect the setting of fontBBox..
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26757 72102866-910b-0410-8b05-ffd578937521
2008-07-11 23:08:36 +00:00
Fred Kiefer
865a89a647 Disable new active window handling again, as it leads to flickering
windows on KDE 4.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26752 72102866-910b-0410-8b05-ffd578937521
2008-07-11 07:03:22 +00:00
Fred Kiefer
97d1847e6a Better focus setting for EWMH window managers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26749 72102866-910b-0410-8b05-ffd578937521
2008-07-07 23:02:46 +00:00
Fred Kiefer
9781c27f45 Small improvements for cairo backend.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26711 72102866-910b-0410-8b05-ffd578937521
2008-06-25 22:20:18 +00:00
Fred Kiefer
4e04ca9ea8 Convert X event millisecond timestamp to NSEvent second timestamp.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26634 72102866-910b-0410-8b05-ffd578937521
2008-06-12 19:55:09 +00:00
Adam Fedor
250ebdfad0 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26620 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:12:46 +00:00
Fred Kiefer
049d17ef30 Correct black bar for cairo > 1.6.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26605 72102866-910b-0410-8b05-ffd578937521
2008-06-07 16:39:08 +00:00
Gregory John Casamento
8026904d7f * Headers/x11/XGGeneric.h:
* Source/x11/XGServerWindow.m: Added code to automatically make 
	any window which uses the NSDesktopWindowLevel also be omnipresent.
	This capability will be added as a style later.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26588 72102866-910b-0410-8b05-ffd578937521
2008-06-01 22:01:08 +00:00
Fred Kiefer
7bf8083235 Small memory fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26580 72102866-910b-0410-8b05-ffd578937521
2008-05-27 22:29:25 +00:00
Fred Kiefer
b45697c04e Faster check for modifier keys.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26578 72102866-910b-0410-8b05-ffd578937521
2008-05-27 20:22:17 +00:00
Fred Kiefer
6b0246aa65 Don't use initialized memory. Patch by Sebastian Reitenbach
<sebastia@l00-bugdead-prods.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26577 72102866-910b-0410-8b05-ffd578937521
2008-05-27 19:58:56 +00:00
Adam Fedor
f69ec5d76b Fix memory leak.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26555 72102866-910b-0410-8b05-ffd578937521
2008-05-23 04:12:37 +00:00
Adam Fedor
ca9fe1135d Standardize cache name to handle new Mac OS X display names
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26530 72102866-910b-0410-8b05-ffd578937521
2008-05-16 17:14:30 +00:00
Fred Kiefer
76a82bc4d2 * Source/xlib/GSXftFontInfo.m (Ones): Correct the parameter
* name.
        * Source/winlib/WIN32FontInfo.m (-glyphIsEncoded:): Add
        * parameter
        to windows call to supress defaults glyphs for missing ones.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26444 72102866-910b-0410-8b05-ffd578937521
2008-04-13 19:39:33 +00:00
Fred Kiefer
41baca7286 Correct the handling of complex path filling. This is needed for
the glyph drawing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26442 72102866-910b-0410-8b05-ffd578937521
2008-04-08 21:03:14 +00:00
Fred Kiefer
2015dcc588 Implement appendBezierPathWithGlyphs:count:toBezierPath: with code
copied over from the art backend.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26438 72102866-910b-0410-8b05-ffd578937521
2008-04-07 18:13:36 +00:00
Fred Kiefer
f2217879fb Backend support for appendBezierPathWithPackedGlyphs:.
Implementation of coveredCharacterSet on GSXftFontInfo.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26436 72102866-910b-0410-8b05-ffd578937521
2008-04-07 13:51:28 +00:00
Fred Kiefer
9e70cc09f7 Moved ligature handling code from art to gui. Small improvements for
other font classes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26431 72102866-910b-0410-8b05-ffd578937521
2008-04-04 22:07:03 +00:00
Fred Kiefer
9ca5ecc181 Correct cairo glyph to path conversion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26426 72102866-910b-0410-8b05-ffd578937521
2008-04-02 22:10:32 +00:00
Fred Kiefer
19dda8e5a7 Clean up and better error check and reporting on cairo and malloc calls.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26391 72102866-910b-0410-8b05-ffd578937521
2008-03-29 13:16:58 +00:00
Gregory John Casamento
f34d954492 * Source/gsc/GSStreamContext.m: Add back implementation for
DPSrectclip::::.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26337 72102866-910b-0410-8b05-ffd578937521
2008-03-18 01:02:41 +00:00
Gregory John Casamento
7f2c788745 Correct code for handling flipped view in NSDrawBitmap::::...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26306 72102866-910b-0410-8b05-ffd578937521
2008-03-15 23:37:45 +00:00
Gregory John Casamento
4056dce19b * Source/gsc/GSStreamContext.m: Added implementation for GSDrawImage.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26305 72102866-910b-0410-8b05-ffd578937521
2008-03-15 21:49:56 +00:00
Gregory John Casamento
4985083c65 Fix to correct printing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26301 72102866-910b-0410-8b05-ffd578937521
2008-03-13 23:38:50 +00:00
Fred Kiefer
79d8eec276 Replaced old unpre-multiply hack with a proper solution.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26256 72102866-910b-0410-8b05-ffd578937521
2008-03-09 22:21:03 +00:00
Fred Kiefer
12c58e77d0 Small fix to last change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26244 72102866-910b-0410-8b05-ffd578937521
2008-03-07 23:15:07 +00:00
Fred Kiefer
3c163d1c72 New method used in window::::, stylewindow: and styleoffsets:::::.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26243 72102866-910b-0410-8b05-ffd578937521
2008-03-07 23:11:02 +00:00
Richard Frith-MacDonald
cef51849f7 fix for segementation violation accessing window of another app
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26226 72102866-910b-0410-8b05-ffd578937521
2008-03-06 13:48:40 +00:00
Richard Frith-MacDonald
70843be41c fix 22274
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26223 72102866-910b-0410-8b05-ffd578937521
2008-03-06 10:08:30 +00:00
Fred Kiefer
ca93f5c895 Correct the cairo version #ifdef.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26220 72102866-910b-0410-8b05-ffd578937521
2008-03-06 08:35:20 +00:00
Richard Frith-MacDonald
78ee5962c6 fixups for implementation of window levels support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26218 72102866-910b-0410-8b05-ffd578937521
2008-03-06 06:19:02 +00:00
Richard Frith-MacDonald
28d61c7a23 keep desktop level winodws at bottom of stack
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26204 72102866-910b-0410-8b05-ffd578937521
2008-03-05 13:42:45 +00:00
Richard Frith-MacDonald
29169b608e some work towards supportign window levels
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26195 72102866-910b-0410-8b05-ffd578937521
2008-03-05 08:07:51 +00:00
Xavier Glattard
201d3bf367 Experimental Cairo and Cairo/Glitz backends on win32
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26189 72102866-910b-0410-8b05-ffd578937521
2008-03-04 10:14:29 +00:00
Fred Kiefer
bec7259309 Try to avoid value flip in window border computation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26136 72102866-910b-0410-8b05-ffd578937521
2008-02-26 00:32:33 +00:00
Fred Kiefer
47ca0b471e Correct creation of screen object and treat primary screen the same as
others.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26132 72102866-910b-0410-8b05-ffd578937521
2008-02-25 19:13:53 +00:00
Fred Kiefer
4ef86c5bc1 Rewrite of windowStyleForGSStyle: to handle more combination of styles
correctly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26069 72102866-910b-0410-8b05-ffd578937521
2008-02-14 23:02:09 +00:00
Fred Kiefer
60296637a0 Another mistype.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26068 72102866-910b-0410-8b05-ffd578937521
2008-02-14 22:33:30 +00:00
Fred Kiefer
a3ff42f0db Changelog entry and correction of last patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26067 72102866-910b-0410-8b05-ffd578937521
2008-02-14 22:32:30 +00:00
Fred Kiefer
4d00d5253c General cleanup of win32 code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26066 72102866-910b-0410-8b05-ffd578937521
2008-02-14 22:26:00 +00:00
Fred Kiefer
f801684505 Windows resize/drawing patch by Christopher Armstrong
<carmstrong@fastmail.com.au>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26065 72102866-910b-0410-8b05-ffd578937521
2008-02-14 21:13:17 +00:00
Fred Kiefer
445e2ea5ba Allow the handling of pre-multiplied bitmaps.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26044 72102866-910b-0410-8b05-ffd578937521
2008-02-08 22:43:13 +00:00
Fred Kiefer
18a0bea31e Fix xlib font size bug with newer Fontconfig.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26000 72102866-910b-0410-8b05-ffd578937521
2008-01-24 18:44:37 +00:00
Fred Kiefer
e2c622bad5 Get to work with newer versions of GLX.
Patch by Thomas Gamper <icicle@cg.tuwien.ac.at>,
slightly reworked.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25990 72102866-910b-0410-8b05-ffd578937521
2008-01-21 21:27:58 +00:00
Fred Kiefer
bef465dd15 Correct wrong parameter name in last patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25986 72102866-910b-0410-8b05-ffd578937521
2008-01-19 21:49:35 +00:00
Fred Kiefer
0f0191c547 Rework of context window device setting. Requires corresponding change
in gui.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25981 72102866-910b-0410-8b05-ffd578937521
2008-01-19 13:12:03 +00:00
Richard Frith-MacDonald
0f9d79fc58 Find offsets using off-screen windows unless GSBackChecksOffsetsOnScreen = YES
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25932 72102866-910b-0410-8b05-ffd578937521
2008-01-11 20:09:38 +00:00
Fred Kiefer
0f194ef5c1 Add patch for Windows with Cygwin.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25883 72102866-910b-0410-8b05-ffd578937521
2008-01-07 14:22:58 +00:00
Isaiah Beerbower
5dd462faa9 Reverting back to former font system.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25721 72102866-910b-0410-8b05-ffd578937521
2007-12-11 12:06:42 +00:00
Isaiah Beerbower
2d50c93089 Rewrite font system to cache fonts in a plist and support nfont bundles.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25717 72102866-910b-0410-8b05-ffd578937521
2007-12-11 00:14:01 +00:00
Fred Kiefer
2cc8536f04 Add missing include.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25713 72102866-910b-0410-8b05-ffd578937521
2007-12-10 15:47:12 +00:00
Fred Kiefer
d1797af60c Correct mistype in last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25712 72102866-910b-0410-8b05-ffd578937521
2007-12-10 15:45:23 +00:00
Fred Kiefer
2ca28c413e Change stroke and fill to use NSColorSpace
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25711 72102866-910b-0410-8b05-ffd578937521
2007-12-10 15:34:56 +00:00
Riccardo Mottola
72e67e283d implement Grayscale image handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25673 72102866-910b-0410-8b05-ffd578937521
2007-12-03 20:56:04 +00:00
Richard Frith-MacDonald
0ae3a96dc6 Another minor MacOS-X compatibility change ... can no longer assume NSDictionary.h is included by our other headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25637 72102866-910b-0410-8b05-ffd578937521
2007-11-29 20:34:25 +00:00
Richard Frith-MacDonald
ff99e19fe9 Fixup coordinated of cursor hotpoint for MacOS-X compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25631 72102866-910b-0410-8b05-ffd578937521
2007-11-29 11:34:41 +00:00
Fred Kiefer
b5fc3678f3 Remove non-normal windows from task list.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25626 72102866-910b-0410-8b05-ffd578937521
2007-11-29 00:56:11 +00:00
Fred Kiefer
1966afda06 Moved image drawing change from gui to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25601 72102866-910b-0410-8b05-ffd578937521
2007-11-22 12:14:48 +00:00
Fred Kiefer
1a8804adbb Convert floats from user space to drawing space and visa versa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25553 72102866-910b-0410-8b05-ffd578937521
2007-11-05 11:01:59 +00:00
Fred Kiefer
a9e8d647b2 Use objectForKey: instead of stringForKey:.
Patch by Wolfgang Lux <wolfgang.lux@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25548 72102866-910b-0410-8b05-ffd578937521
2007-10-31 16:50:32 +00:00
Fred Kiefer
0f8c5487c7 Change files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25538 72102866-910b-0410-8b05-ffd578937521
2007-10-29 23:25:10 +00:00
Fred Kiefer
8d37c37008 Hack to get drawing on non-retained windows working.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25529 72102866-910b-0410-8b05-ffd578937521
2007-10-18 16:51:56 +00:00
Fred Kiefer
18f790a690 Allow non-resizable windows to be resized programmatically.
Clean up compiler warnings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25527 72102866-910b-0410-8b05-ffd578937521
2007-10-12 09:32:27 +00:00
Fred Kiefer
901c5b758c First implementation of appendBezierPathWithGlyphs:count:toBezierPath:
for cairo.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25522 72102866-910b-0410-8b05-ffd578937521
2007-10-08 21:27:51 +00:00
Fred Kiefer
f2ac847ff4 Add a generic basic implementation for the DPSshfill: operator. This
needs to be optimized for each individual backend and the original art
implemenation should be moved to this.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25519 72102866-910b-0410-8b05-ffd578937521
2007-10-05 20:57:59 +00:00
Fred Kiefer
69745597e4 Use drawing depth from window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25518 72102866-910b-0410-8b05-ffd578937521
2007-10-05 14:02:31 +00:00
Fred Kiefer
7edb569d70 Add missing include.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25508 72102866-910b-0410-8b05-ffd578937521
2007-10-01 16:37:33 +00:00
Fred Kiefer
c8a731fd97 No error logging when copy of path fails. This is normal in cairo 1.4.10
for empty paths.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25507 72102866-910b-0410-8b05-ffd578937521
2007-10-01 16:02:16 +00:00
Fred Kiefer
1ce0bd5175 Add PDF output for cairo backend.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25479 72102866-910b-0410-8b05-ffd578937521
2007-09-12 15:46:55 +00:00
Fred Kiefer
6455a62a4f Clear the GNUstep path after operation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25471 72102866-910b-0410-8b05-ffd578937521
2007-09-09 20:34:13 +00:00
Fred Kiefer
ce58b92800 Copy dash and clipping.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25461 72102866-910b-0410-8b05-ffd578937521
2007-09-06 21:32:55 +00:00
Fred Kiefer
355aa2db1e New methods to store and get last event time.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25457 72102866-910b-0410-8b05-ffd578937521
2007-09-05 14:35:06 +00:00
Fred Kiefer
a9e6f5bd73 Add more checks for cairo status.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25455 72102866-910b-0410-8b05-ffd578937521
2007-09-05 09:59:12 +00:00
Fred Kiefer
1100345667 Use defScreen istead of 0.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25452 72102866-910b-0410-8b05-ffd578937521
2007-09-04 23:59:54 +00:00
Fred Kiefer
6652a87b27 Correct checking for XRender. Patch by Yen-Ju Chen <yjchenx@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25450 72102866-910b-0410-8b05-ffd578937521
2007-09-04 22:40:43 +00:00
Fred Kiefer
bc449e6b65 Create the NSMutableCharacterSet to store the character ranges in.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25448 72102866-910b-0410-8b05-ffd578937521
2007-09-04 08:17:54 +00:00
Nicolas Roard
c821c8e5c7 Fixed the scrolling bug.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25446 72102866-910b-0410-8b05-ffd578937521
2007-09-04 02:12:30 +00:00
Nicolas Roard
f9a1879e18 fix to deal with the presence/absence of Xrender
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25445 72102866-910b-0410-8b05-ffd578937521
2007-09-04 00:37:00 +00:00
Nicolas Roard
28f92090ff cleaned the compositeGState:fromRect:toPoint:op:fraction: method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25442 72102866-910b-0410-8b05-ffd578937521
2007-09-03 22:26:29 +00:00
Nicolas Roard
09ce663feb AlpenStep stuff with Fred Kiefer's help:
- Added support for 32 bit surfaces when it's possible (use of Xrender extension..).
- Modified the Cairo backend to take advantage of that: we can now draw windows with partial transparency.
- Fixed a bug in the Cairo backend (copy of a surface to itself) using the cairo "groups". Scrolling is still wrong, but we're closer to something good ;-)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25441 72102866-910b-0410-8b05-ffd578937521
2007-09-02 14:23:03 +00:00
Fred Kiefer
0848c69b72 Extracted code shared between the two ftfont files into new files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25409 72102866-910b-0410-8b05-ffd578937521
2007-08-22 11:54:13 +00:00
Fred Kiefer
4bd371d64a Use CurrentTime instead of generic.lastTime.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25405 72102866-910b-0410-8b05-ffd578937521
2007-08-21 13:37:20 +00:00
Fred Kiefer
d164d499c2 Made handling of focus in and out more explicit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25403 72102866-910b-0410-8b05-ffd578937521
2007-08-20 22:31:09 +00:00
Fred Kiefer
85576dbae2 Increase version number of font format, as font mask values have
changed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25397 72102866-910b-0410-8b05-ffd578937521
2007-08-16 14:47:45 +00:00
Fred Kiefer
79b9caf27f Set lastTime to CurrentTime not 1 to get setinputfocus working for the
first activation of the application.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25395 72102866-910b-0410-8b05-ffd578937521
2007-08-16 14:14:33 +00:00
Fred Kiefer
b7b431cd43 Removed left over NSLog statements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25394 72102866-910b-0410-8b05-ffd578937521
2007-08-15 14:26:55 +00:00
Fred Kiefer
05a23a6aae Correct minor bugs in last changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25393 72102866-910b-0410-8b05-ffd578937521
2007-08-15 13:42:36 +00:00
Fred Kiefer
32d116c7b2 Add more EWMH methods and helper methods.
Simplify dragging support code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25389 72102866-910b-0410-8b05-ffd578937521
2007-08-14 22:44:40 +00:00
Fred Kiefer
0dd2da6751 Correct coveredCharacterSet. Patch by Yen-Ju Chen <yjchenx@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25387 72102866-910b-0410-8b05-ffd578937521
2007-08-13 16:08:22 +00:00
Fred Kiefer
87c48de8b4 Use local FT_Size variable instead of ivar. The ivar is sometimes
invalid.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25381 72102866-910b-0410-8b05-ffd578937521
2007-08-07 16:04:47 +00:00
Fred Kiefer
efb48fbccb Handle SIGINT by calling ([NSApp terminate: NSApp]) to shut down
cleanly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25368 72102866-910b-0410-8b05-ffd578937521
2007-08-02 07:31:37 +00:00
Sergii Stoian
07a077f3e7 * Source/cairo/CairoGState.m
(-_setPoint): Adjust point.
    (-_adjustPath:): Optimize and cleanup.
    (-compositeGState:fromRect:toPoint:op:fraction:): Adjust toPoint.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25301 72102866-910b-0410-8b05-ffd578937521
2007-07-02 23:30:11 +00:00
Sergii Stoian
ed77ebb967 * Source/cairo/CairoGState.m
(-DPSsetstrokeadjust:): Implement.
  (-DPSinitgraphics): Set _strokeadjust to 1 by default.
  (-_adjustPath:): Implement new method that place the path to pixel
  boundaries.
  (-_setPath:): Change method definition adding fillOrClip argument.
  Use _adjustPath: method.
  (-DPSclip): Change call of _setPath: to new format.
  (-DPSeoclip): Ditto.
  (-DPSeofill): Ditto.
  (-DPSfill): Ditto.
  (-DPSstroke): Ditto.
  (-compositerect:op:): Ditto.
* Headers/cairo/CairoGState.h: Define _strokeadjust variable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25299 72102866-910b-0410-8b05-ffd578937521
2007-07-01 23:02:29 +00:00
Sergii Stoian
5cb04d880e * Source/cairo/CairoGState.m: (-DPSshow:): Apply correct scale
and translate transformation matrix.
* Source/cairo/CairoFontInfo.m: (-widthOfString:): Add sanity check.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25298 72102866-910b-0410-8b05-ffd578937521
2007-07-01 22:17:14 +00:00
Fred Kiefer
c1d1c74891 Printing improvements and handle rotated text.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25296 72102866-910b-0410-8b05-ffd578937521
2007-06-29 11:31:53 +00:00
Fred Kiefer
70c32e5675 Replaced appendTransform: with prependTransform:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25223 72102866-910b-0410-8b05-ffd578937521
2007-06-06 12:59:33 +00:00
Nicola Pero
a1cea73cd8 Remove generated file on clean
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25114 72102866-910b-0410-8b05-ffd578937521
2007-05-02 01:25:33 +00:00
Fred Kiefer
89c1ce993a Use cairo specific code for PS file creation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25088 72102866-910b-0410-8b05-ffd578937521
2007-04-27 12:23:28 +00:00
Fred Kiefer
8b9b2102f3 XDnD improvements by Matt Rice.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25071 72102866-910b-0410-8b05-ffd578937521
2007-04-25 00:12:46 +00:00
Fred Kiefer
ff21318a0a Backend part of graphic context rewrite.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24965 72102866-910b-0410-8b05-ffd578937521
2007-04-04 14:33:10 +00:00
Fred Kiefer
1c702a4308 Replace obsolte NSAffinetransform methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24926 72102866-910b-0410-8b05-ffd578937521
2007-03-23 11:27:28 +00:00
Fred Kiefer
680ea7befd Brought art backend closer to the GNUstep coding style.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24923 72102866-910b-0410-8b05-ffd578937521
2007-03-22 16:54:47 +00:00
Fred Kiefer
3ab2c8bd91 Small improvement of cairo composite for rotated case.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24918 72102866-910b-0410-8b05-ffd578937521
2007-03-22 13:39:26 +00:00
Fred Kiefer
4fadeaf154 Clean up of CairoGState.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24912 72102866-910b-0410-8b05-ffd578937521
2007-03-21 13:09:19 +00:00
Fred Kiefer
ea06dfbf73 Corrected colour settign for alpha = 0, GSReadRect and compositerect.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24906 72102866-910b-0410-8b05-ffd578937521
2007-03-20 23:24:04 +00:00
Fred Kiefer
b2d624ad91 Don't use cairo transformations, use the super class implementation
instead. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24896 72102866-910b-0410-8b05-ffd578937521
2007-03-18 17:50:58 +00:00
Fred Kiefer
452d7fb89f Completed and corrected drag type mapping.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24847 72102866-910b-0410-8b05-ffd578937521
2007-03-11 17:42:46 +00:00
Xavier Glattard
41208bb38d Many changes :
- Deletion of all non-GNUstep debug stuff (printf...)
- Deletion of all Notification hooks (used for a debugging purpose)
- Deletion of the Application preference Panel that popups (pops up?)
  the 1st time you run _any_ application
- Deletion of the check of GSWINHandlesWindowDecorations and 
  GSWIN32HandlesWindowDecorations options (none worked because of 
  a typo and are now deprecated).
- use of GSBackHandlesWindowDecorations option like X11 backend
  instead of GSUseWMStyles (marked as deprecated)
- use of GSBackUsesNativeTaskbar option instead of GSUseWMTaskbar
  (marked as deprecated)
- all these options are read in -initWithAttribute: (no more in
  +inializeBackend) and set an instance (not class) variable.
- add methods -handlesWindowDecorations/-setHandlesWindowDecorations
- add methods -usesNativeTaskbar/-setUsesNativeTaskbar



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24804 72102866-910b-0410-8b05-ffd578937521
2007-03-07 18:11:17 +00:00
Xavier Glattard
bbd4ebe7d8 Fix a bug in OpenGL sub-window placement when handlesWindowDecorations == YES
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24803 72102866-910b-0410-8b05-ffd578937521
2007-03-07 17:40:50 +00:00
Fred Kiefer
ac06785665 Corrected handling of flipped state in matrix operations and image
drawing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24754 72102866-910b-0410-8b05-ffd578937521
2007-03-02 12:24:46 +00:00
Fred Kiefer
b534dad58a Use either mask or fill, but not both.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24734 72102866-910b-0410-8b05-ffd578937521
2007-03-01 12:03:06 +00:00
Fred Kiefer
d9595a9f43 Get colour from fillColor as only there the alpha value is set.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24733 72102866-910b-0410-8b05-ffd578937521
2007-02-28 23:22:34 +00:00
Fred Kiefer
6e1af0cfc0 Aloow simple PS context to work.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24728 72102866-910b-0410-8b05-ffd578937521
2007-02-28 12:27:10 +00:00
Fred Kiefer
78ba818f54 Clean up of font attributes and better protection against _ct being null
in cairo backend.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24710 72102866-910b-0410-8b05-ffd578937521
2007-02-27 16:35:31 +00:00