Commit Graph

1381 Commits

Author SHA1 Message Date
Dmitry Timoshkov bfa35f37a7 gdiplus: Add support for StringFormatFlagsNoClip. 2012-09-04 17:15:32 +02:00
Marcus Meissner 5ae8629fca gdiplus: Avoid uninitialized usage of bitmap (Coverity). 2012-09-03 17:43:31 +02:00
Dmitry Timoshkov bf0f8c970f gdiplus: Add a test for scaling an image with world transform. 2012-08-31 17:02:22 +02:00
Dmitry Timoshkov e0fd87aea1 gdiplus: Print some additional information about device and image being drawn. 2012-08-30 19:16:52 +02:00
Dmitry Timoshkov 89ab0e4b12 gdiplus: Make GdipMeasureCharacterRanges/GdipMeasureString/GdipDrawString add extra space around the text. 2012-08-29 21:25:07 +02:00
Dmitry Timoshkov 3f35a11426 gdiplus: get_log_fontW helper requires a valid graphics object. 2012-08-27 19:49:42 +02:00
Dmitry Timoshkov 2e31f7a80a gdiplus: Fix font leak. 2012-08-27 19:49:41 +02:00
Dmitry Timoshkov 31544a73da gdiplus/tests: Fix font leak. 2012-08-27 19:49:39 +02:00
Dmitry Timoshkov ac8019df3d gdiplus: Correct signature/mask info for the GIF codec. 2012-08-27 11:30:35 +02:00
Dmitry Timoshkov 4e2959ab9b gdiplus: Make GdipMeasureCharacterRanges use common font transformation code. 2012-08-24 18:25:19 +02:00
Dmitry Timoshkov 7a1ccd8abe gdiplus: Do not convert range_rect.X twice. 2012-08-24 18:25:12 +02:00
Dmitry Timoshkov 144a692ffa gdiplus: Filter tabs out until they are properly supported using stringformat. 2012-08-23 21:36:56 +02:00
Dmitry Timoshkov e6c77a7c7a gdiplus: Clarify in the tests where 1/3 of extra text height comes from. 2012-08-23 21:36:56 +02:00
Dmitry Timoshkov c8055b5b7b gdiplus: GdipMeasureCharacterRanges should respect device units and transformations. 2012-08-22 12:12:27 +02:00
Dmitry Timoshkov 1418cd796c gdiplus: GdipMeasureCharacterRanges shouldn't treat empty layout rectangle as infinite bounds. 2012-08-22 12:12:11 +02:00
Dmitry Timoshkov 32d37c832d gdiplus: Add a bunch of tests for GdipMeasureCharacterRanges. 2012-08-22 12:12:04 +02:00
Dmitry Timoshkov acc4623fd0 gdiplus: Use set_rect_empty() helper to make the code slightly more compact and readable. 2012-08-21 11:47:15 +02:00
Dmitry Timoshkov 10c84dfe3b gdiplus: Rename roundr() to gdip_round() to make it clearer that it's an internal helper. 2012-08-21 11:47:11 +02:00
Dmitry Timoshkov 6e63a478b3 gdiplus: StringFormatFlagsLineLimit doesn't allow line wrapping. 2012-08-20 17:06:27 +02:00
Dmitry Timoshkov de6c150d98 gdiplus: Add a test for extra space added by GdipMeasureString. 2012-08-20 17:06:13 +02:00
Dmitry Timoshkov 6f630a4091 gdiplus: GdipGetImageThumbnail should return image in 32bppPARGB format. 2012-08-20 17:06:00 +02:00
Dmitry Timoshkov 62724c9d57 gdiplus: Return error code of the failed API to the caller. 2012-08-20 17:05:46 +02:00
Dmitry Timoshkov e9aef40c26 gdiplus: Round the layout rectangle down instead of up in gdip_format_string(). 2012-08-20 17:05:39 +02:00
Dmitry Timoshkov 003333e6cb gdiplus: Add a test for measuring string that doesn't fit into layout rectangle. 2012-08-20 17:05:22 +02:00
Dmitry Timoshkov 466dfee115 gdiplus: If there is no hbitmap associated with GpBitmap then create one. 2012-08-20 17:05:07 +02:00
Francois Gouget 1051a107a4 gdiplus/tests: Make pixels_to_units() static. 2012-08-16 17:08:00 +02:00
Dmitry Timoshkov e3d27c42d9 gdiplus: Make GdipSetPropertyItem return Ok. 2012-08-16 11:59:12 +02:00
Dmitry Timoshkov 7c8e8fc5e2 gdiplus: Dump the matrix passed to GdipSetWorldTransform. 2012-08-16 11:58:57 +02:00
Dmitry Timoshkov e7b5e69843 gdiplus: Properly convert source coordinates to device units in GdipDrawImagePointsRect. 2012-08-16 11:58:51 +02:00
Dmitry Timoshkov 938d42c148 gdiplus: When there is no target rectangle specified DrawImage should scale image to device dpi. 2012-08-16 11:58:42 +02:00
Dmitry Timoshkov 7f1cb3bca2 gdiplus: Destination points passed to GdipDrawImagePointsRect should be in device units. 2012-08-16 11:58:34 +02:00
Dmitry Timoshkov fa7a34b907 gdiplus: Forward GdipDrawImage to GdipDrawImagePointRect. 2012-08-15 13:55:11 +02:00
Dmitry Timoshkov 3b8f437f44 gdiplus: Add a test for GdipDrawImage scaling. 2012-08-15 13:54:59 +02:00
Dmitry Timoshkov 50931d8985 gdiplus: Add a test for font height scaling. 2012-08-15 13:54:55 +02:00
Dmitry Timoshkov 6bb353858e gdiplus: Replace convert_unit() by a clearer units_to_pixels() helper. 2012-08-15 13:53:31 +02:00
Dmitry Timoshkov 6f4625559e gdiplus: GdipMeasureString should apply its internal scaling factors to layout rectangle. 2012-08-15 13:52:52 +02:00
Dmitry Timoshkov 889be9d447 gdiplus: get_font_hfont helper should transform returned font height using font and device unit/resolution/scale. 2012-08-14 16:41:56 +02:00
Dmitry Timoshkov f8b1154226 gdiplus: GdipGetLogFontW should transform returned font height using font and device unit/resolution/scale. 2012-08-14 16:41:55 +02:00
Dmitry Timoshkov e9af648aeb Revert commit b20a1f56b0. 2012-08-14 16:41:55 +02:00
Dmitry Timoshkov b953011f9e gdiplus: Add more tests for GdipMeasureString using device with custom resolution. 2012-08-14 16:41:53 +02:00
Michael Stefaniuc 60bef14094 gdiplus: Remove unreachable break after return (Smatch). 2012-08-13 12:07:46 +02:00
Dmitry Timoshkov af042f2754 gdiplus: Correct GdipSaveImageToFile spec entry. 2012-08-13 11:49:27 +02:00
Dmitry Timoshkov 3298a30211 gdiplus: Improve precision of calculated pixel to units transformation. 2012-07-31 17:59:12 +02:00
Dmitry Timoshkov e6c69e9685 gdiplus: Add some GdipTransformPoints tests for a device with different x/y resolutions. 2012-07-26 11:08:02 +02:00
Dmitry Timoshkov e536a128f7 gdiplus: Store device resolution in the graphics object. 2012-07-26 11:07:41 +02:00
Dmitry Timoshkov 9697829511 gdiplus: Add missing 'break'. 2012-07-26 11:07:24 +02:00
Dmitry Timoshkov c67951c70a gdiplus: Handle image loading failures under some XP versions. 2012-07-25 20:14:57 +02:00
Dmitry Timoshkov 0b40df2990 gdiplus: Make get_palette() usable for generating predefined palettes. 2012-07-25 20:13:58 +02:00
Dmitry Timoshkov f165e2725f gdiplus: Add 8bppGray to the list of supported formats. 2012-07-25 20:13:55 +02:00
Dmitry Timoshkov 271d801ea4 gdiplus: Use predefined palette if an image doesn't provide one. 2012-07-25 20:13:52 +02:00