summaryrefslogtreecommitdiff
path: root/mi/misprite.c
AgeCommit message (Collapse)AuthorFilesLines
2008-08-28Prepare for array-index based devPrivates.Tomas Carnecky1-2/+4
TODO: static indices can be made just an int; some indices can be combined.
2008-08-19Refactor misprite a bit.Adam Jackson1-6/+38
No variable declarations in header files, please.
2008-07-04Remove unused function and variables.Tiago Vignatti1-1/+0
2008-06-18mi: remove trailing whitespaces from misprite.cPeter Hutterer1-36/+37
2008-06-11Remove more unused things.Tiago Vignatti1-1/+0
In function ‘miSpriteCloseScreen’: warning: unused variable ‘pDev’
2008-06-05mi: protect against possible NULL-pointer dereference.Peter Hutterer1-5/+5
2008-05-28mi: ansify.Peter Hutterer1-71/+27
2008-05-13Remove UndisplayCursor API.Peter Hutterer1-19/+0
We can achieve the same thing by simply displaying a NullCursor, there's no need for a separate API.
2008-04-28mi: guard against NULL-pointer dereference.Peter Hutterer1-1/+4
2008-04-25Standardise copyright headers for all new files created as part of MPX.Peter Hutterer1-6/+0
2008-01-03Merge branch 'master' into mpxPeter Hutterer1-57/+52
Conflicts: XTrap/xtrapddmi.c Xext/security.c Xext/xprint.c Xext/xtest.c Xext/xvdisp.c Xi/exevents.c Xi/grabdevb.c Xi/grabdevk.c Xi/opendev.c Xi/ungrdev.c Xi/ungrdevb.c Xi/ungrdevk.c dix/cursor.c dix/devices.c dix/dixutils.c dix/events.c dix/getevents.c dix/main.c dix/window.c hw/xfree86/ramdac/xf86Cursor.c include/dix.h include/input.h include/inputstr.h mi/midispcur.c mi/miinitext.c mi/misprite.c render/animcur.c xfixes/cursor.c xkb/xkbAccessX.c
2007-11-08Merge branch 'mpx' into mdsdPeter Hutterer1-59/+0
Conflicts: Xi/opendev.c
2007-11-07Merge branch 'master' into mpxPeter Hutterer1-59/+0
Conflicts: Xi/extinit.c Xi/grabdev.c Xi/setmode.c Xi/ungrdev.c dix/devices.c dix/events.c dix/getevents.c include/dix.h mi/midispcur.c mi/misprite.c xkb/xkbActions.c xkb/xkbEvents.c xkb/xkbPrKeyEv.c
2007-10-17mi: fix some macros to allow multiple cursors for master devices.Peter Hutterer1-2/+46
Macros defaulted to inputInfo.pointe rfor devices that weren't spriteOwners. Changed to take the device's master device now. This includes sticking in a number of checks and warnings that cursor rendering won't be called for floating devices.
2007-08-28devPrivates rework: since API is already broken, switch everythingEamon Walsh1-40/+38
over to new system. Need to update documentation and address some remaining vestiges of old system such as CursorRec structure, fb "offman" structure, and FontRec privates.
2007-08-25Implement core protocol backing store exclusively in terms of Composite.Adam Jackson1-47/+0
Composite's automatic redirection is a more general mechanism than the ad-hoc BS machinery, so it's much prettier to implement the one in terms of the other. Composite now wraps ChangeWindowAttributes and activates automatic redirection for windows with backing store requested. The old backing store infrastructure is completely gutted: ABI-visible structures retain the function pointers, but they never get called, and all the open-coded conditionals throughout the DIX layer to implement BS are gone. Note that this is still not a strictly complete implementation of backing store, since Composite will throw the bits away on unmap and therefore WhenMapped and Always hints are equivalent.
2007-04-26Fix cursor rendering for multi-head.Peter Hutterer1-8/+19
Before putting anything on the screen, check if the GC was made for the ScreenRec we want to render to. If not, toss the GC and create a new one. This is not the best solution but it does the job for now. Same thing for ARGB cursors except that it's even uglier. Also remember the screen the cursor was rendered to and check for the right screen in the BlockHandler, SourceValidate and a few others. Only remove or restore the cursor if we are rendering to the same screen, otherwise we get artefacts that are both funky and really annoying.
2007-04-19Revert "Suppress software cursor removal during rotated shadow buffer drawing."Keith Packard1-33/+4
This reverts commit 999b681cf3973af4191506e49cde06963b11a774. Replacing this with simpler code that just disables SourceValidate during rotation redisplay.
2007-04-18Suppress software cursor removal during rotated shadow buffer drawing.Eric Anholt1-4/+33
2007-04-09Alloc sprite memory in devices' devPrivates, allow undisplaying cursors.Peter Hutterer1-153/+170
Improve memory usage by allocating the sprite's memory only to devices that actually have a sprite and provide means to remove a device's cursor from the screen (more hotplugging, yay!). This commit breaks ScreenRec's ABI.
2007-03-19Merge branch 'master' into mpxPeter Hutterer1-5/+5
Conflicts: dix/devices.c dix/events.c mi/misprite.c
2007-03-09mi: remove 'register' keywords.Peter Hutterer1-5/+5
2007-01-29mi: Fix cursor rendering issues.Peter Hutterer1-16/+69
2006-12-18mi: removing MPX ifdefsPeter Hutterer1-15/+15
global sprite renaming in mipointer and misprite fixed: multiple remove cursor call in miSpriteInstallColormap fixed: wrong core pointer usage in miSpriteStoreColors dix: bugfix in CheckCursorConfinement removing MPX ifdefs removing MPX event generation (using Xi solely now) bugfix GrabDevice: uninitialized field in grab struct caused segfault xfree86: removing MPX fdefs Xi: removing MPX protocol events
2006-12-14mi: removing MPX ifdefsPeter Hutterer1-164/+80
global sprite renaming in mipointer and misprite fixed: multiple remove cursor call in miSpriteInstallColormap fixed: wrong core pointer usage in miSpriteStoreColors dix: bugfix in CheckCursorConfinement removing MPX ifdefs removing MPX event generation (using Xi solely now)
2006-11-28dix: missing parameter to SetCursorPosition in CheckMotion ifndef MPXPeter Hutterer1-3/+1
mi: missing include in misprite.c ifndef MPX
2006-11-27mi: malloc checks for misprite and midispcur, code cleanupPeter Hutterer1-56/+52
removed IsMPDev()
2006-11-27mi: free allocated memory in miDCCloseScreen and in miDCInitialize in casePeter Hutterer1-324/+267
of errors. Some copyright notices. misprite.c passes DeviceIntPtr around and down to DC (previously miCursorInfoPtr and the plain device id). Large cleanup in misprite.c to avoid code duplication.
2006-11-22dix: DeliverEventsToWindow adjusted for MPXPeter Hutterer1-1/+1
mi: sprite debugging disabled
2006-11-22mi: added DevToSprite() conversion functionPeter Hutterer1-10/+24
fixed miSpriteRealize to use passed pDev argument instead of looping. dix: changed sprite dependency and added MPX functionality to parts of events.c (XineramaChangeToCursor, XineramaCheckPhysLimits, XineramaConstrainCursor) Xi: fix: accessing other->buttons for keyboard segfaulted the server
2006-11-21dix: WindowsRestructured() calls CheckMotion() on all devicesPeter Hutterer1-99/+106
mi: core pointer was checked twice in miSpriteReportDamage, miSpriteInstallColormap, miSpriteStoreColors, miSpriteSaveDoomedAreas and miSpriteRealiseCursor using damage bug (see comment in file) to avoid artefacts
2006-11-21mi: added device ID to miSpriteCursorFuncRec functionsPeter Hutterer1-3/+6
added MPX code to midispcur.c BUG: Core pointer changes whenever MPX cursor changes shape.
2006-11-21mi: added MPX to miSpriteReportDamagePeter Hutterer1-0/+23
added id field to miCursorInfoPtr, required to pass through to miDC core pointer uses mpCursors array as well. added miDCBufferRec for future use with MPX TAG: MPX_BEFORE_MIDC_API_BREAK
2006-11-20mi: added MPX to miSprite functions.Peter Hutterer1-122/+367
NOTE: This version will render multiple cursors but with an artefact each time when devices alternate.
2006-11-20mi: moved core pointer information from miSpriteScreenRec into aPeter Hutterer1-123/+145
miCursorInfoRec. bugfix in mipointer, semicolon after preprocessor statement
2006-11-17mi:Peter Hutterer1-1/+32
added miCursorInfoRec to contain info of the MPX cursors. calling miUpdatePointerSprite() from event queue for MPX devices. adding device-specific processing to miPointer*() functions. dix: Call to SetCursorPosition in CheckMotion() temporarily disabled. xfree86/common: call to miPointerUpdateSprite() disabled, is done from the EQ NOTE: This build will not display cursor images. BUG: The second mouse does to take correct x coordinates.
2006-11-17dix: moved isMPdev field to end of _DeviceIntRec structurePeter Hutterer1-10/+26
mi: added miMPPointers array to mipointer.c added DeviceIntPtr to all miPointerSpriteFuncs. Coming from miPointer we use inputInfo.pointer as standard value. ABI BREAK! ramdac: forcing failed HW Cursor initialisation. MPX needs software rendering. changes to use new miPointerSpriteFunc (this required externing inputInfo, should probably be fixed at a later point). RAC: changes to use new miPointerSpriteFuncs.
2006-07-21Remove RCS tags. Fix Xprint makefile braindamage.Adam Jackson1-2/+0
2006-02-15Mark everything in misym.c as _X_EXPORT.Adam Jackson1-1/+1
2005-12-29Style fix, make SCREEN_EPILOGUE two arguments instead of three.Adam Jackson1-10/+10
2005-08-21Fix inclusion order of dix-config.h, so _XSERVER64 gets defined before X.hDaniel Stone1-3/+4
or Xdefs.h get included. (Jürg Billeter)
2005-07-03Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings.Daniel Stone1-2/+6
Add XSERV_t, TRANS_SERVER, TRANS_REOPEN to quash warnings. Add #include <dix-config.h> or <xorg-config.h>, as appropriate, to all source files in the xserver/xorg tree, predicated on defines of HAVE_{DIX,XORG}_CONFIG_H. Change all Xfont includes to <X11/fonts/foo.h>.
2005-04-20Fix includes right throughout the Xserver tree:Daniel Stone1-2/+2
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h; change "foo.h", "extensions/foo.h" and "X11/foo.h" to <X11/extensions/foo.h> for extension headers, e.g. Xv.h; change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
2004-08-07Fix minor timestamp lossage in mieq.Keith Packard1-1624/+126
Replace miSprite implementation with Damage-based one. Otherwise damage and misprite conflict causing looping. Change pScreen usage around a bit to eliminate warnings
2004-04-23Merging XORG-CURRENT into trunkEgbert Eich1-1/+1
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich1-1/+1
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0Egbert Eich1-1/+1
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich1-1/+1
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich1-1/+1
2003-11-14XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley1-79/+336