Benjamin Otte
b87be76bdf
test: Add gl functions to the tests
2010-07-05 22:50:18 +02:00
Benjamin Otte
448653e7b9
Call _cairo_error() when setting the FINISHED error on surfaces
2010-07-05 22:42:08 +02:00
Benjamin Otte
19da8e138d
tee: Add proper error handling
...
Caught by api-special-cases
2010-07-05 22:40:54 +02:00
Benjamin Otte
a9f30fc1f0
test: Add recording and tee surface functions to api-special-cases
2010-07-05 22:40:34 +02:00
Benjamin Otte
41abc0ca37
test: add PNG functions
2010-07-05 22:19:05 +02:00
Benjamin Otte
897eaa3e97
test: Add a non-error surface check
...
In that check, we call functions that require a specific surface type
with surfaces of a different type and check that they don't crash and
set the correct error.
2010-07-05 22:11:23 +02:00
Benjamin Otte
986ddf5652
test: add image surface functions to api-special-cases test
2010-07-05 22:03:42 +02:00
Benjamin Otte
72878d70ea
test: Add a new test variant to api-special-cases test
...
This variant tests a (hopefully) inert error surface.
2010-07-05 21:01:56 +02:00
Benjamin Otte
9de25a0297
configure: remove dolt
...
libtool should be fast by now
2010-07-05 18:38:33 +02:00
Benjamin Otte
6744b78de1
subsurface: Fail if created from a finished surface
...
Caught by api-special-cases test
2010-07-05 18:38:33 +02:00
Benjamin Otte
8fd1ecea12
surface: Fail if set_mime_data() is called on a finished surface
...
Caught by api-special-cases test
2010-07-05 18:38:33 +02:00
Benjamin Otte
e388ff1ae7
surface: Fail early if create_similar() is called on a finished surface
...
Caught by api-special-cases test
2010-07-05 18:38:33 +02:00
Benjamin Otte
c1689ef6f2
surface: don't call begin_modification on finished surfaces
...
Fixes https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/600622
Caught by api-special-cases test
2010-07-05 18:38:33 +02:00
Benjamin Otte
cf0245c120
tests: Add a testcase that checks APIs work consistently
...
In particular, it checks that finished and surfaces in an error state do
not do bad things, like cause crashes.
So far this test only checks surface APIs, but it should be extended to
cover all APIs.
Please update this test when new APIs get added.
Motivated by https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/600622
2010-07-05 18:38:28 +02:00
Benjamin Otte
eb63284fc3
configure: Use automake silent rules
...
This replaces shave usage.
If silent rules are not available, don't use them.
2010-07-05 18:29:58 +02:00
Benjamin Otte
68bbb6b4a0
configure: remove shave
2010-07-05 00:35:39 +02:00
Benjamin Otte
9ce87c67ff
perf: print comment describing backend
...
Use the descibe string to output information about the backend we're
testing.
2010-07-03 02:55:52 +02:00
Benjamin Otte
fcfe7c6724
boilerplate: Add describe string
...
Print the pixman version we're using
2010-07-03 02:55:52 +02:00
Benjamin Otte
0a7135148a
gl: Add describe string
2010-07-03 02:55:52 +02:00
Benjamin Otte
a1c4b001a5
boilerplate: Add a describe vfunc
...
This function is supposed to describe the backend in use. The describe
function is optional - and therefore initialized as NULL everywhere.
Note:
It is well known that the xlib backend uses X. What is not known is what
version the server supports or what graphics card it is running on. That
is the information the describe vfunc is supposed to provide.
2010-07-03 02:55:52 +02:00
Chris Wilson
4c039b1cdf
user-font: Check the status before destroying the context
2010-07-02 17:02:19 +01:00
Chris Wilson
1f84f5682c
xlib: Apply translation to image surface upload.
...
Fixes:
Bug 28888 - cairo_paint with rgb images does not work correctly
https://bugs.freedesktop.org/show_bug.cgi?id=28888
2010-07-02 13:19:17 +01:00
Andrea Canciani
d2d6c96c24
user-font: correct handling of size 0 text
...
Text with size 0 has a singular scale matrix, thus requires special
handling to avoid invalidating the context where it is used.
Fixes pthread-show-text and text-zero-len (they failed with assertion
when ran using the user font backend).
2010-06-30 12:31:25 +02:00
Andrea Canciani
6db247e13c
user-font: ignore translation in scale matrix
...
Currently the translation component of the scaled_font scale matrix
is applied by gstate and only linear components should be applied in
font backends.
Fixes font-matrix-translation (when using user-font as font backend).
2010-06-29 09:28:04 +02:00
Andrea Canciani
549431e98e
ft-font: fix typo
2010-06-28 22:40:28 +02:00
Chris Wilson
97a88c5adb
xlib: Compile without fontconfig
...
Create a cairo-fontconfig-private.h where we can add the missing defines
in a common location rather than in the body of the code.
2010-06-28 17:11:54 +01:00
Andrea Canciani
7d69100143
quartz: remove unused declarations
2010-06-28 17:12:41 +02:00
Andrea Canciani
bd4c14b94e
quartz: remove unused os version info
...
It was previously used to activate a workaround for text transformation
whenrunning on some os versions. Now the workaround is not needed anymore.
2010-06-28 16:55:57 +02:00
Andrea Canciani
aa7e9c43b6
quartz-font: correct and explain matrix computations
...
glyph_path was taking into account the translation (which currently
is already applied in gstate) and the sign of the elements of the
matrices was not explained.
2010-06-28 16:55:57 +02:00
Andrea Canciani
b26f72fef9
quartz: check return status
...
If the font backend is unable to tell the extents of the operation,
consider it unbound.
2010-06-28 16:55:57 +02:00
Andrea Canciani
9c0d761bfc
quartz: improve text transform handling
...
Use scale instead of manually compositing font_matrix and ctm and
composite it with the context ctm, so that no workaround for clipping
is needed anymore.
2010-06-28 16:55:57 +02:00
Andrea Canciani
9068b5768b
quartz-font: silence compiler warnings
...
Remove an unused function, explicitly ignore or check return values,
don't define unused variables.
2010-06-28 16:55:57 +02:00
Chris Wilson
ca161a585a
version: 1.9.9
...
Post-snapshot bump.
2010-06-26 14:50:57 +01:00
Chris Wilson
0f1ff0daab
test: Missing ref image.
2010-06-26 14:32:27 +01:00
Chris Wilson
45d1f461ce
version: 1.9.10
2010-06-26 14:32:27 +01:00
Chris Wilson
7a68a7bfd5
NEWS for 1.9.10 snapshot
2010-06-26 14:32:26 +01:00
Chris Wilson
8df4136119
Regenerate default win32 headers.
2010-06-26 09:52:11 +01:00
Benjamin Otte
1373675ef7
pop-group: Translate existing path properly
...
This fixes the reverse case of the push_group case fixed a few commits
ago.
2010-06-25 14:10:12 +02:00
Benjamin Otte
5907677667
test: improve push-group-path-offset to also catch the pop_group() case
...
cairo_pop_group() also trasnforms the path wrong, so we use cairo_fill()
to copy data instead of cairo_paint().
(Also, unbust the testcase.)
2010-06-25 14:08:49 +02:00
Benjamin Otte
2e8571d95c
push-group: Fix path translation when pushing a group with device offsets
...
With the previous code, the parent's device offset wasn't undone before
applying the new device offset.
Tested by push-group-path-offset test.
2010-06-25 13:48:07 +02:00
Benjamin Otte
a9b8d1a94e
test: Add a new test for a bug with device-offset tests
...
All the credit for this one goes to make distcheck
2010-06-25 13:48:04 +02:00
Chris Wilson
1099a3515b
drm/intel: Fix common off-by-one by rewriting the [XY]MAX macro.
...
Many rectangles in the command stream are specified as inclusive rects,
i.e. the max values are (width-1, height-1), which is easy to neglect.
2010-06-24 17:29:19 +01:00
Chris Wilson
fb6a00571c
drm: _cairo_color_get_content() compilation fixes
2010-06-24 17:29:18 +01:00
Zoxc
42956b4643
build: Added cairo deflate stream as a requirement for the script surface.
2010-06-24 15:28:07 +01:00
M Joonas Pihlaja
b036a09972
whitespace: Fixup formal arguments and tabs in boilerplate/ and perf/.
...
Ran a script to align the formal parameters of functions and
collapse spaces to tabs in code.
2010-06-24 15:02:53 +03:00
M Joonas Pihlaja
616e35d1fa
boilerplate: Remove the xlib-window target from Renderless builds.
...
I don't know why _cairo_boilerplate_xlib_window_create_surface()
is in the Render-only section of the code, but since it is, this
patch makes the boilerplate at least compile if we don't have
Render support built in.
2010-06-24 15:02:53 +03:00
Søren Sandmann Pedersen
aed744008d
test: Fix typo in copyright statement
2010-06-24 05:39:00 -04:00
Soeren Sandmann
5c7e1dd690
test: Add an example of seams.
...
A pair of perfectly conjoint quads should not produce a seam when
accumulating into a temporary mask. Yet here is an example of where they
do!
2010-06-24 10:13:22 +01:00
Benjamin Otte
413ec4b708
gl: Return a surface from _cairo_surface_create_in_error()
...
On error, surface creation functions should always return a surface
created with _cairo_surface_create_in_error() instead of a new surface
in an error state. This simplifies internal code as no refcounting has
to be done.
2010-06-22 23:19:32 +02:00
Benjamin Otte
a4e292507c
gl: Propagate surface creation error instead of crashing
2010-06-22 22:01:25 +02:00