Søren Sandmann Pedersen
61a92a78cd
Add RegionInitBoxes(), and fix some buggy callers of RegionInit().
...
The interface to RegionInit():
RegionInit (RegionPtr pReg, BoxPtr rect, int size);
is very confusing because it doesn't take a list of boxes, it takes
*one* box, but if that box is NULL, it initializes an empty region
with 'size' rectangles preallocated.
Most callers of this function were correctly passing either NULL or
just one box, but there were three confused cases, where the code
seems to expect a region to be created from a list of boxes.
This patch adds a new function RegionInitBoxes() and fixes those
instances to call that instead.
And yes, the pixman function to initialize a region from a list of
boxes is called init_rects() because pixman is also awesome.
V2: Make RegionInitBoxes() return a Bool indicating whether the call
succeeded, and fix the callers to check this return value.
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Søren Sandmann <ssp@redhat.com>
2011-04-22 21:39:31 -04:00
..
.gitignore
callback.h
dix: optimize CallCallbacks
2010-10-13 09:24:06 -07:00
client.h
os: Add facilities for client ID tracking.
2010-12-23 13:53:18 +02:00
closestr.h
dixfonts: Deobfuscate GC ops calls.
2010-09-13 15:55:17 -07:00
closure.h
colormap.h
Quit using clientErrorValue in dix/colormap.c.
2010-05-13 17:14:07 -07:00
colormapst.h
xfree86: Fix the sdk headers to be multilib-safe
2011-02-23 13:39:22 -05:00
cursor.h
Change the devPrivates API to require dixRegisterPrivateKey
2010-06-05 19:23:03 -07:00
cursorstr.h
Change the devPrivates API to require dixRegisterPrivateKey
2010-06-05 19:23:03 -07:00
dix-config-apple-verbatim.h
dix-config.h.in
configure.ac: Add check for libdispatch when building for darwin
2011-04-21 23:56:18 -07:00
dix.h
dix: Remove deprecated.c
2011-03-08 13:17:24 -05:00
dixaccess.h
dixevents.h
dixfont.h
dix: use one single function to register fpe fonts
2010-06-24 13:55:28 -07:00
dixfontstr.h
dixgrabs.h
dixstruct.h
os: Add facilities for client ID tracking.
2010-12-23 13:53:18 +02:00
eventconvert.h
Input: Allow EventToCore to return multiple events
2011-02-17 09:40:59 +10:00
events.h
eventstr.h
include: Fix a copy/paste error in a comment
2011-01-27 14:22:02 +10:00
exevents.h
Xi: constify XIChangeDeviceProperty()
2011-02-14 09:12:58 +10:00
extension.h
extinit.h
extnsionst.h
Declare functions that unconditionally call FatalError as _X_NORETURN.
2010-05-22 01:00:04 -07:00
gc.h
Un-export CreateScratchGC now that nothing external uses it.
2010-09-13 15:58:08 -07:00
gcstruct.h
Delete unused lastWinOrg field from GCs.
2010-09-13 15:55:17 -07:00
globals.h
Move each screen's x/y origin into ScreenRec.
2010-06-03 14:03:23 -07:00
hotplug.h
input.h
input: remove GetKeyboardValuatorEvents, this is now unnecessary.
2011-04-18 13:05:46 +10:00
inputstr.h
Xi: fix valuator alignment in DeepCopyDeviceClasses ( #36119 )
2011-04-18 13:04:19 +10:00
inpututils.h
Export all valuator_mask_* functions
2010-12-31 12:36:43 +00:00
kdrive-config.h.in
list.h
include: document list interface.
2011-02-25 09:03:08 +10:00
Makefile.am
os: Add facilities for client ID tracking.
2010-12-23 13:53:18 +02:00
misc.h
dix: Fix ATOM typedef
2011-03-14 13:44:07 -04:00
miscstruct.h
opaque.h
dix: adds support for none root window background
2010-11-11 23:24:43 +02:00
os.h
Merge remote branch 'alanc/master'
2010-12-07 13:39:58 -08:00
pixmap.h
dix: Remove the memory of the multibuffer extension
2010-10-13 09:18:41 -07:00
pixmapstr.h
Revert "dix: Remove usage_hint from pixmaps, store it in ->drawable.class"
2011-03-17 23:48:52 -07:00
privates.h
Add fence sync driver interface
2010-12-06 19:15:26 -08:00
property.h
propertyst.h
dix: Shrink PropertyRec on LP64
2011-03-14 13:44:46 -04:00
protocol-versions.h
Merge remote branch 'whot/for-keith'
2011-03-03 14:41:44 -08:00
ptrveloc.h
dix: change ProcessVelocityData2D to BOOL.
2011-04-21 14:17:55 +10:00
region.h
regionstr.h
Add RegionInitBoxes(), and fix some buggy callers of RegionInit().
2011-04-22 21:39:31 -04:00
registry.h
resource.h
dix: Define RESTYPE as uint32_t
2011-03-14 13:57:20 -04:00
rgb.h
screenint.h
scrnintstr.h
Revert "dix: Remove usage_hint from pixmaps, store it in ->drawable.class"
2011-03-17 23:48:52 -07:00
selection.h
servermd.h
xfree86: nds32: add nds32 related definitions into include headers.
2010-09-23 15:35:48 -07:00
site.h
dix: delete logo hack screen saver
2010-11-11 23:20:35 +02:00
swaprep.h
swapreq.h
validate.h
version-config.h.in
window.h
consolidate SetRootClip (v2)
2011-03-28 10:06:32 +10:00
windowstr.h
composite: Support updating an arbitrary subtree
2011-01-05 11:57:31 -08:00
XIstubs.h
input: Purge AddOtherInputDevices DDX hook.
2010-09-01 15:26:52 +10:00
xkb-config.h.in
xkbfile.h
xkbrules.h
xkbsrv.h
xkb: Release XKB component names when compiling keymap.
2011-03-16 15:21:41 +10:00
xkbstr.h
xorg-config.h.in
DRI2: Allow building without libdrm
2010-06-03 11:56:03 +03:00
xorg-server.h.in
xfree86: Fix the sdk headers to be multilib-safe
2011-02-23 13:39:22 -05:00
Xprintf.h
Add asprintf() implementation for platforms without it
2010-12-07 11:10:35 -08:00
xserver-properties.h
dix: add 3x3 transformation matrix xinput property for multi-head handling
2010-05-28 16:49:30 +10:00
xsha1.h
xwin-config.h.in