Commit graph

53 commits

Author SHA1 Message Date
Fred Kiefer
234ac0932b Replace NSCompositeHighlight with GSCompositeHighlight and map NSCompositeHighlight onto
NSCompositeSourceOver.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@34773 72102866-910b-0410-8b05-ffd578937521
2012-02-18 21:10:07 +00:00
Eric Wasylishen
883c8cbd61 * Source/winlib/WIN32GState.m (GSCreateBitmap): Add support for
(8 bit-greyscale, 8-bit alpha) format. This fixes various 
default images not showing (menu arrows, scroller arrows, etc.)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33582 72102866-910b-0410-8b05-ffd578937521
2011-07-18 18:13:47 +00:00
Eric Wasylishen
07638f13fc * Source/winlib/WIN32GState.m:
* Source/art/ARTGState.m:
* Source/cairo/CairoGState.m:
* Source/xlib/XGGState.m:
* Source/gsc/GSContext.m:
* Source/gsc/GSGState.m:
* Headers/gsc/GSGStateOps.h:
Add a new interface, GSShowGlyphsWithAdvances, which replaces
GSShowGlyphs as the primitive text drawing method.

None of the backends implement it properly yet; I simply renamed
the existing -GSShowGlyphs:: methods to -GSShowGlyphsWithAdvances:::,
so they currently ignore the glyph advances.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33121 72102866-910b-0410-8b05-ffd578937521
2011-05-26 03:48:58 +00:00
Fred Kiefer
544ee725a7 Remove a few compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31726 72102866-910b-0410-8b05-ffd578937521
2010-12-11 14:49:54 +00:00
Fred Kiefer
5ef996a240 Better error detection in Windows image display.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31725 72102866-910b-0410-8b05-ffd578937521
2010-12-11 14:28:44 +00:00
Eric Wasylishen
282a590ad5 core/back: replace objc_{malloc/free} with malloc/free
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31629 72102866-910b-0410-8b05-ffd578937521
2010-11-18 20:28:15 +00:00
Quentin Mathe
e67f20d28b Small correction of alpha blending related comments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30831 72102866-910b-0410-8b05-ffd578937521
2010-06-22 22:28:13 +00:00
Quentin Mathe
18f70010bf Fixed Windows backend issues introduced with r30523 where images are drawn at
the wrong location by -[NSImage drawXXX] methods.

See bug report #30069


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30829 72102866-910b-0410-8b05-ffd578937521
2010-06-22 22:18:56 +00:00
Doug Simons
cca4dec810 Fix problem with display location for some composited images
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30228 72102866-910b-0410-8b05-ffd578937521
2010-04-23 23:01:34 +00:00
Gregory John Casamento
588ae69c45 Changes to prevent inconsistent main/key state and move alphablend to a separate function call.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29722 72102866-910b-0410-8b05-ffd578937521
2010-02-24 21:50:20 +00:00
Richard Frith-MacDonald
19c1a931bb commit alpha tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28953 72102866-910b-0410-8b05-ffd578937521
2009-11-04 12:09:15 +00:00
Richard Frith-MacDonald
1cacaf1c5f fixup to retrieve bitmapo data into correct location
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28952 72102866-910b-0410-8b05-ffd578937521
2009-11-04 09:51:34 +00:00
Richard Frith-MacDonald
be032bb1cc first go at GSReadRect
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28931 72102866-910b-0410-8b05-ffd578937521
2009-11-01 17:43:42 +00:00
Fred Kiefer
695a563092 Small correction of last change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28862 72102866-910b-0410-8b05-ffd578937521
2009-10-20 07:39:37 +00:00
Fred Kiefer
3c8eab0c49 Implement pattern colours for all backends.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28850 72102866-910b-0410-8b05-ffd578937521
2009-10-19 14:17:45 +00:00
Fred Kiefer
d2179329e3 * Source/winlib/WIN32GState.m (-_paintPath:) Only draw when the
fill/stroke colour has a non zero alpha. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28391 72102866-910b-0410-8b05-ffd578937521
2009-07-13 15:58:42 +00:00
Fred Kiefer
0f7b2e89cb Finish rework of composite operators started four years ago.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28313 72102866-910b-0410-8b05-ffd578937521
2009-05-31 19:46:28 +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
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
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
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
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
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
Richard Frith-MacDonald
4bd0a9f1b5 Use accessor for affine transform internals which should otherwise be private.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24131 72102866-910b-0410-8b05-ffd578937521
2006-11-19 11:08:09 +00:00
Richard Frith-MacDonald
32d2f9faca Update for coordinate mapping changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23473 72102866-910b-0410-8b05-ffd578937521
2006-09-12 19:53:46 +00:00
Richard Frith-MacDonald
39b84c08f5 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23274 72102866-910b-0410-8b05-ffd578937521
2006-08-13 09:46:36 +00:00
Richard Frith-MacDonald
734254bdc0 Some fixups t the previous patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23273 72102866-910b-0410-8b05-ffd578937521
2006-08-13 09:33:11 +00:00
Gregory John Casamento
e97de80626 Applying patch to windows backend by Christopher Armstrong.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23239 72102866-910b-0410-8b05-ffd578937521
2006-08-10 05:29:50 +00:00
Richard Frith-MacDonald
1139d62bb5 Fix irritating typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@22938 72102866-910b-0410-8b05-ffd578937521
2006-05-16 13:22:10 +00:00
Richard Frith-Macdonald
08c5a3d3d0 Coding style fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@22020 72102866-910b-0410-8b05-ffd578937521
2005-11-16 11:40:31 +00:00
Adam Fedor
1ce2926317 * Restructuring of the windows server to handle various
window and toolbar issues (See Source/win32/RELEASE_NOTES for
more info).
* Headers/win32/WIN32Server.h: Added ivars and flags and methods.
* Headers/winlib/WIN32GState.h: Added method to avoid confliting
types with superclass.
* Source/win32/GNUmakefile: Add new files.
* w32_debug.m, w32_activate.m, w32_create.m, w32_general.m,
w32_movesize.m, w32_text_focus.m, w32_windowdisplay.m,
GSDisplayServer_details.m: New files.
* Source/win32/WIN32Server.m: Large changes. Merged with
WIN32ServerEvent. Lots of documentation.

* Source/winlib/WIN32GState.m: Variable name changes to
avoid shadowing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21716 72102866-910b-0410-8b05-ffd578937521
2005-09-14 15:48:11 +00:00
Adam Fedor
aac8b84400 * Source/winlib/WIN32GState.m ([WIN32GState -compositeGState:...]): Fall
through to default operation if alpha blend not sucessful.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21476 72102866-910b-0410-8b05-ffd578937521
2005-07-14 21:30:09 +00:00
Fred Kiefer
62356b3c4f Support for images in NSCalibratedRGBColorSpace for windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21292 72102866-910b-0410-8b05-ffd578937521
2005-06-07 19:38:54 +00:00
Adam Fedor
7a3f75f9ac Update FSF Address
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21263 72102866-910b-0410-8b05-ffd578937521
2005-05-26 22:51:53 +00:00
Richard Frith-Macdonald
e7fe51d887 Transparency fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21042 72102866-910b-0410-8b05-ffd578937521
2005-04-04 08:46:08 +00:00
Richard Frith-Macdonald
034a3f82e2 Various improvements in win32 window management
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21000 72102866-910b-0410-8b05-ffd578937521
2005-03-29 14:03:30 +00:00
Fred Kiefer
93d65fa6f9 Disable use of AlphaBlend for windows backend.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20080 72102866-910b-0410-8b05-ffd578937521
2004-09-17 17:52:28 +00:00
Fred Kiefer
3c77485016 Moved extend string showing methods to GSG.
Simple (not working) alpha handling on windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@19686 72102866-910b-0410-8b05-ffd578937521
2004-07-06 17:52:39 +00:00
Fred Kiefer
8417031f94 Exchanged appendTransform: and prePendTransform:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@18479 72102866-910b-0410-8b05-ffd578937521
2004-01-25 16:50:33 +00:00
Fred Kiefer
0ec87c9c05 New font handling and some bug fixing for MS Windows backend.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@18257 72102866-910b-0410-8b05-ffd578937521
2003-12-23 16:42:40 +00:00
Adam Fedor
d84db66ba6 Workaround for bug in Windows GDI drawing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@18250 72102866-910b-0410-8b05-ffd578937521
2003-12-02 15:37:42 +00:00
Adam Fedor
f0a7bbdb03 Clear path after rectclip
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17768 72102866-910b-0410-8b05-ffd578937521
2003-10-03 03:19:15 +00:00
Richard Frith-Macdonald
71287aef45 Support drawing of glyphs for new text system
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15899 72102866-910b-0410-8b05-ffd578937521
2003-02-06 12:09:17 +00:00
Adam Fedor
f6429ce1fc Focus fixes. Update passing of colorspaces, fonts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14680 72102866-910b-0410-8b05-ffd578937521
2002-10-09 03:01:09 +00:00
Alexander Malmberg
fe197f6b45 Optimize color handling by passing pointers instead of device_color_t structures.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14329 72102866-910b-0410-8b05-ffd578937521
2002-08-25 18:54:07 +00:00
Fred Kiefer
4d7583c891 dont change the path in DPSrectstroke
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13799 72102866-910b-0410-8b05-ffd578937521
2002-06-07 23:20:31 +00:00
Fred Kiefer
394b4beaa2 Rewrote clipping code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13767 72102866-910b-0410-8b05-ffd578937521
2002-06-04 13:22:01 +00:00
Fred Kiefer
b71f78ba3d Reimplemented the creation of bitmaps.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13759 72102866-910b-0410-8b05-ffd578937521
2002-06-02 12:22:33 +00:00
Adam Fedor
353df3bb6e Better initgraphics
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13638 72102866-910b-0410-8b05-ffd578937521
2002-05-13 03:34:47 +00:00
Adam Fedor
8a6bb28712 Typo fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13624 72102866-910b-0410-8b05-ffd578937521
2002-05-10 15:15:51 +00:00