Commit Graph

151 Commits

Author SHA1 Message Date
Alex Henrie a66f4e521c user32: Remove unused variable ani_icon_data from release_icon_frame.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2015-10-02 18:11:30 +09:00
Alex Henrie 50403fec1e user32: Replace release_icon_ptr with release_user_handle_ptr.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2015-10-02 18:11:30 +09:00
Sebastian Lackner a9ff334976 user32: Fix invalid memory access and leak if alloc_user_handle fails (Coverity). 2015-03-17 14:52:08 +09:00
Bruno Jesus da8bb1c4a5 user32: Allocate memory based on HICON instead of DWORD to fix 64 bit problems. 2015-01-19 16:02:10 +01:00
Frédéric Delanoy 762aef6613 user32: Use BOOL type where appropriate. 2013-11-20 11:26:30 +01:00
Alexandre Julliard a897e13fba user32: Get rid of the CreateCursorIcon driver entry point. 2013-10-22 10:25:44 +02:00
Alexandre Julliard 5bfc411ae7 user32: Constify pointers that point to read-only file data. 2013-03-28 17:36:54 +01:00
Alexandre Julliard 267109d6f1 user32: Add size checks when creating an icon from bitmap info. 2013-03-28 17:36:54 +01:00
Alexandre Julliard 550e53b6bb user32: Prefer loading color cursors in LoadImage. 2013-02-12 13:56:41 +01:00
Daniel Jelinski 59e0d7af68 user32: Fix CopyImage implementation when changing cursor to icon. 2013-02-11 11:24:07 +01:00
Nikolay Sivov 4c24882e3e user32: Accept BI_BITFIELDS format for icons when creating icons. 2013-01-24 10:48:02 +01:00
Michael Stefaniuc 8ab1fc5ff7 user32: Use FIELD_OFFSET to calculate the size of a struct with variable length array. 2012-10-24 12:01:48 +02:00
Michael Stefaniuc 7d4605db41 user32: Remove redundant sizeof check. 2012-10-24 12:01:45 +02:00
Alexandre Julliard 8ab65c222e user32: Draw the mask with SRCCOPY in DrawIcon when the image isn't being drawn. 2012-02-08 11:00:51 -06:00
Alexandre Julliard 8407559167 user32: Don't access past the file size when loading a cursor/icon. 2012-01-12 12:18:15 +01:00
Alexandre Julliard 430c8aa910 user32: Don't try to alpha blend icons on low color bitmaps. 2011-12-16 17:40:32 +01:00
Alexandre Julliard 3bbb208f8e user32/tests: Add tests for small sizes of cursor bitmaps. 2011-11-16 18:08:12 +01:00
Alexandre Julliard 16944f500d user32: Simplify the DIB byte width computation. 2011-08-29 12:08:21 +02:00
Alexandre Julliard 43240527b6 user32: Pass valid dimensions to GetDIBits. 2011-08-29 12:08:21 +02:00
Alexandre Julliard 6b0d9ff1cd server: Allow setting a zero-size clip rectangle. 2011-06-21 15:04:24 +02:00
Alexandre Julliard 513e5c98a7 user32: Add support for loading animated cursors/icons from resources. 2011-04-20 11:16:18 +02:00
Alexandre Julliard 8970e29f44 user32: Support creating animated icons, not only cursors. 2011-04-20 10:54:10 +02:00
Alexandre Julliard 886ae4c348 winex11: Always forward SetCursor to the driver, and limit the frequency of updates on the driver side. 2011-04-05 13:36:57 +02:00
Alexandre Julliard 21e86f60ec server: Post a message to the desktop window when the cursor clip rectangle changes. 2011-04-05 13:36:57 +02:00
Erich Hoover 8486b2010f user32: Downgrade GetCursorFrameInfo FIXME to a TRACE unless the second parameter is non-zero. 2011-03-17 13:06:50 +01:00
Erich Hoover 274e5db7e7 user32: Add support for sequence-based animated cursors. 2011-03-17 13:06:49 +01:00
Erich Hoover 7b333de867 user32: Merge create_icon_bitmaps with CURSORICON_CreateIconFromBMI. 2011-03-17 13:06:49 +01:00
Erich Hoover 28e9b99728 user32: Add support for retrieving individual animated frames. 2011-03-17 13:06:49 +01:00
Erich Hoover fa4f9c43bc user32: Handle static and animated cursors as separate objects. 2011-03-17 13:06:49 +01:00
Erich Hoover ee8cb4f728 user32: Add a convenience function for retrieving the number of steps in a cursor. 2011-03-16 16:31:55 +01:00
Erich Hoover 0bb1aadb8f user32: Add get/release routines for accessing cursor frames. 2011-03-16 16:31:54 +01:00
Erich Hoover 3e35caa7b2 user32: Add preliminary support for reading and storing multi-rate animated cursor data. 2011-03-10 15:24:34 +01:00
Erich Hoover 389ffed293 user32: Add FIXMEs for unsupported animated cursor data. 2011-03-10 15:24:04 +01:00
Erich Hoover 86a9f20aa2 user32: Fix GetCursorFrameInfo when passed the proper number of steps. 2011-03-10 15:23:34 +01:00
Erich Hoover e776f3ccf7 user32: Implement semi-stub of GetCursorFrameInfo. 2011-03-07 15:10:22 +01:00
Erich Hoover 7b0ab606e2 user32: Permit loading animated cursors with CreateIconFromResource(Ex). 2011-03-07 15:10:01 +01:00
Wolfram Sang c67f075d67 user32: Check bitmap info before it is used. 2011-02-28 13:15:07 +01:00
Wolfram Sang ce5763b88c user32: Make DIB_GetBitmapInfo checks stricter. 2011-02-28 13:15:01 +01:00
Alexandre Julliard 02e8174067 server: Store the cursor clip rectangle in the server. 2011-02-25 13:50:19 +01:00
Alexandre Julliard 76fb69bf3d user32: Fix LoadImage behavior with zero size and no LR_DEFAULTSIZE.
Based on a patch by Marcus Meissner.
2011-01-28 12:44:21 +01:00
Alexandre Julliard ab4a5a327d user32: Propagate the LoadImage flags into the low-level loader functions. 2011-01-28 12:42:56 +01:00
Mikhail Maroukhine f859535774 user32: Add constness to params and variables. 2011-01-04 16:09:53 +01:00
Alexandre Julliard 2c63cf58ea user32: Don't call GetModuleFileNameW under the user lock. 2010-12-14 13:49:14 +01:00
Alexandre Julliard e8723a5dee user32: Fix destruction of the active cursor. 2010-10-13 15:38:06 +02:00
Gerald Pfeifer 8c7e2f99db user32: Removed some code that is unused after revision 751a09e983. 2010-10-13 11:19:53 +02:00
Alexandre Julliard 19eea5fa6b user32: Improve error checking in GetIconInfo. 2010-10-12 23:24:11 +02:00
Alexandre Julliard bb8590f6ce user32: Fix a DC leak in DrawIconEx. 2010-10-12 23:01:22 +02:00
Alexandre Julliard 76e7fcc9d8 user32: Store icon objects directly in the cache instead of using a separate structure. 2010-10-11 17:11:27 +02:00
Alexandre Julliard 76cd25c875 user32: Reimplement icon copying using CURSORICON_Load. 2010-10-11 17:11:27 +02:00
Alexandre Julliard 6e7846e33e user32: Return the module and resource name in GetIconInfoEx. 2010-10-11 17:11:27 +02:00