Andrew Hyatt
4fdbcaf767
Rename CGEventType.h to CGEventTypes.h
...
It is called the latter on macOS
2017-04-10 18:09:25 -07:00
Lubos Dolezel
0e7bbb842e
Merge branch 'using-machos-experiment'
2017-03-27 10:51:30 +02:00
Lubos Dolezel
b493e16bce
Adapt headers for Apportable Foundation
2017-03-27 10:51:30 +02:00
Sergey Bugaev
92e401e963
Install CoreGraphics.framework
2017-03-01 18:57:25 +03:00
Lubos Dolezel
7243e159cb
Adapt headers for Apportable Foundation
2017-02-28 17:48:14 +01:00
Sergey Bugaev
86e9eba9a1
Make CMakeLists nicer and way more portable
2017-02-23 19:25:31 +03:00
Sergey Bugaev
14975d100f
Darling build
2017-02-11 12:21:19 +03:00
fredkiefer
693c3613f5
* Source/OpalGraphics/CGContext.m: Protect against incorrect dash count.
...
* Source/OpalGraphics/cairo/CairoFontX11.m: Correct sign of descender.
* Source/OpalGraphics/image/OPImageCodecPNG.m: Prepare for newer
libpng versions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@40296 72102866-910b-0410-8b05-ffd578937521
2017-01-18 22:52:41 +00:00
fredkiefer
958114ee06
Make this a library with resources.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@39882 72102866-910b-0410-8b05-ffd578937521
2016-06-19 20:24:26 +00:00
fredkiefer
eedd0b21f7
Speed up window display for opal backing store.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@39879 72102866-910b-0410-8b05-ffd578937521
2016-06-19 11:32:32 +00:00
fredkiefer
86e0cba223
My final GNUstep commit.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@39237 72102866-910b-0410-8b05-ffd578937521
2015-12-13 17:55:23 +00:00
ericwa
8269adcc02
Oapl: Add OPContextGetAlpha
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37181 72102866-910b-0410-8b05-ffd578937521
2013-10-01 23:31:53 +00:00
fredkiefer
b5b4afdc87
* Source/OpalGraphics/CGBitmapContext.m:
...
Support all sort of alpha for RGB data.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37168 72102866-910b-0410-8b05-ffd578937521
2013-09-29 15:54:34 +00:00
ericwa
d232041991
Opal: fix typos
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37160 72102866-910b-0410-8b05-ffd578937521
2013-09-27 17:27:25 +00:00
ivucica
fd3640fb96
Resilience to nil. Better diagnostics.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37143 72102866-910b-0410-8b05-ffd578937521
2013-09-23 18:17:39 +00:00
ericwa
b187c82e04
* Source/OpalGraphics/CGContext.m (CGContextGetCTM): Fix flipping logic. gstate.m test now passes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37133 72102866-910b-0410-8b05-ffd578937521
2013-09-22 08:53:02 +00:00
ivucica
2bde484705
Added gstate test. Currently this tests whether some CTM operations are correctly performed in a CGContext; namely, setting identity CTM, concatenating, and getting the current CTM.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37131 72102866-910b-0410-8b05-ffd578937521
2013-09-21 22:38:59 +00:00
ivucica
19c59362cc
Made creation of OpalGStateSnapshot resistant to being passed a nil context.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37118 72102866-910b-0410-8b05-ffd578937521
2013-09-19 22:26:31 +00:00
ericwa
006b4e8672
* Source/OpalGraphics/CGContext.m (opal_draw_surface_in_rect):
...
Use srcRect correctly, as well as the context alpha value.
* Tests/images.m: JPEG codec is broken, so use a png of the
world map to make the demo work.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37110 72102866-910b-0410-8b05-ffd578937521
2013-09-18 19:44:16 +00:00
ericwa
fe69a17705
Opal: image loading fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37109 72102866-910b-0410-8b05-ffd578937521
2013-09-18 17:59:34 +00:00
ericwa
d68e8a3ef1
Opal: improve sub-image test
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37107 72102866-910b-0410-8b05-ffd578937521
2013-09-18 17:38:19 +00:00
ericwa
e30bbceccb
Opal: tweak xcode project
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37106 72102866-910b-0410-8b05-ffd578937521
2013-09-18 17:03:56 +00:00
ivucica
944bc6071c
(Forgot to release the sub-images.)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37105 72102866-910b-0410-8b05-ffd578937521
2013-09-18 14:50:27 +00:00
ivucica
f42bfa23ed
Added code testing how sub-images are being drawn into CGContext.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37104 72102866-910b-0410-8b05-ffd578937521
2013-09-18 14:49:16 +00:00
ericwa
9f2b5a7f65
* Source/OpalGraphics/CGFont.m:
...
* Source/OpalGraphics/internal/CGFontInternal.h:
* Source/OpalGraphics/cairo/CairoFontWin32.m:
* Source/OpalGraphics/cairo/CairoFontX11.m:
* Headers/CoreGraphics/CGFont.h: Add private OPFontGetGlyphWithCharacter
to get the glyph index for a character. The proper API is in CoreText
but that's not usable yet, unlike CGFont.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37098 72102866-910b-0410-8b05-ffd578937521
2013-09-17 21:49:44 +00:00
ericwa
1e2e210d85
* Tests/texttest.m: Fix test: bug calculating glyph indicies
...
with the wrong font.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37096 72102866-910b-0410-8b05-ffd578937521
2013-09-17 21:34:51 +00:00
ivucica
59916bcc0e
Fixed changelog dates.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37092 72102866-910b-0410-8b05-ffd578937521
2013-09-17 18:36:42 +00:00
ericwa
b2fc2cac13
* Source/OpalGraphics/cairo/CairoFontX11.m (-descent): Fix
...
descender calculation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37086 72102866-910b-0410-8b05-ffd578937521
2013-09-17 05:57:19 +00:00
ericwa
4f8735ebaa
* Source/OpalGraphics/CGContext.m (CGContextShowGlyphsAtPositions):
...
Check if font size is 0, and log an error instead of continuing,
which seems to put the cairo context into an error state.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37085 72102866-910b-0410-8b05-ffd578937521
2013-09-17 03:57:10 +00:00
ivucica
3614202e3c
Added OPFontCreateWithFcPattern() and OPFontGetMaximumAdvancement().
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37083 72102866-910b-0410-8b05-ffd578937521
2013-09-16 23:00:50 +00:00
ericwa
17f0b6ac19
* Source/OpalGraphics/CGContext+GState.m:
...
* Headers/CoreGraphics/CGContext.h: Add OPContextCopyGState
and OPContextSetGState. I know we discussed writing getters
for individual properties of the graphics state but this
was quicker to throw together as a first iteration.
Warning, not tested.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37077 72102866-910b-0410-8b05-ffd578937521
2013-09-13 05:54:12 +00:00
ericwa
4597f264b3
* Rename NSFont* to OPFont* to avoid conflicting with AppKit.
...
This is just a quick hack; to enable toll-free bridging will
require significant work.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37076 72102866-910b-0410-8b05-ffd578937521
2013-09-13 03:56:18 +00:00
ivucica
e363aec24f
CTFramesetter: Breaking out of an infinite loop.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@37075 72102866-910b-0410-8b05-ffd578937521
2013-09-13 00:26:00 +00:00
fredkiefer
5e6145cdfe
Get the tests to compile again.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36941 72102866-910b-0410-8b05-ffd578937521
2013-08-02 14:34:47 +00:00
ivucica
2ceb8f8693
Fixed changelog
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36926 72102866-910b-0410-8b05-ffd578937521
2013-07-25 14:39:10 +00:00
ericwa
095d87adbb
* Source/OpalGraphics/CGImage.m (CGImageCreateWithImageInRect):
...
Revert last change, it needs more work
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36925 72102866-910b-0410-8b05-ffd578937521
2013-07-25 14:19:06 +00:00
ivucica
f5cc409556
Changed NSDebugLLog() category to OpalCall. Made logging more useful by adding context %p.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36924 72102866-910b-0410-8b05-ffd578937521
2013-07-25 14:16:44 +00:00
ericwa
6bde302939
* Source/OpalGraphics/CGImage.m (CGImageCreateWithImageInRect):
...
Use the source rect to set the returned image's size.
The method is still incomplete, see TODOs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36923 72102866-910b-0410-8b05-ffd578937521
2013-07-25 14:09:24 +00:00
ericwa
5aa60a457e
* Source/OpalGraphics/image/OPImageCodecPNG.m: Rewrite to use
...
OPImageConvert and always convert to 32-bit RGBA, unpacked,
non-premultiplied. This is not ideal, but should always work.
* Source/OpalGraphics/CGDataConsumer.m: Create the file if
needed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36919 72102866-910b-0410-8b05-ffd578937521
2013-07-24 02:25:31 +00:00
ivucica
59dd0b94da
Most non-error logging is now using NSDebugLLog(), to have Opal emit less noise unless explicitly requested. Cleaned up small pieces of code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36917 72102866-910b-0410-8b05-ffd578937521
2013-07-23 23:12:05 +00:00
ivucica
9317cf8e34
OPLogging macros used in CGBitmapContext and CGContext. Fixed crash in DumpPixel(). Fixed CGContextSet*ColorWithColor() setters. Added some null checks.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36909 72102866-910b-0410-8b05-ffd578937521
2013-07-21 11:31:05 +00:00
ericwa
615ff8a995
* Source/OpalGraphics/CGBitmapContext.m: Fix subtle endianness bug.
...
For future reference, kCGBitmapByteOrderDefault means big-endian.
* Tests/bitmaps.m: Add a bitmap context test. It draws a black background
with a cream colored blob in the bottom left.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36898 72102866-910b-0410-8b05-ffd578937521
2013-07-16 14:41:18 +00:00
ericwa
824fb3d4cb
fix typo in last commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36897 72102866-910b-0410-8b05-ffd578937521
2013-07-16 14:09:34 +00:00
ericwa
f16f16d957
* Source/OpalGraphics/CGBitmapContext.m: Use calloc to allocate zeroed
...
bitmap buffers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36896 72102866-910b-0410-8b05-ffd578937521
2013-07-16 14:06:18 +00:00
ivucica
728591e070
Added OPContextSetIdentityCTM() and OPContextResetClip().
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36890 72102866-910b-0410-8b05-ffd578937521
2013-07-15 14:16:43 +00:00
ericwa
41cce35cc1
CGBitmapContext: continuing implementation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36807 72102866-910b-0410-8b05-ffd578937521
2013-07-03 00:32:42 +00:00
ericwa
ba397282b7
Fix some bugs in CGBitmapContext
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36805 72102866-910b-0410-8b05-ffd578937521
2013-07-02 23:30:54 +00:00
ericwa
64380d31e5
CGPath: import CGPathAddEllipseInRect from NSBezierPath.m
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36804 72102866-910b-0410-8b05-ffd578937521
2013-07-02 23:09:02 +00:00
ericwa
dc1c74d139
CGBitmapContext: support drawing into a temporary buffer with cairo and converting to the user's requested format if the user requests a format cairo doesn't support
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36803 72102866-910b-0410-8b05-ffd578937521
2013-07-02 17:23:12 +00:00
ericwa
e841f592ac
fix typo in CGPath bounding box function name
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/opal/trunk@36793 72102866-910b-0410-8b05-ffd578937521
2013-07-01 22:50:59 +00:00