Commit Graph

1708 Commits

Author SHA1 Message Date
André Hentschel 0f7bc2d8cc gdi32: Avoid memory leaks (coverity). 2012-10-29 10:34:54 +01:00
Huw Davies 7cd8dc6bf2 gdi32: Use a symbol charmap if all else fails. 2012-10-26 16:29:29 +02:00
Huw Davies 8ef70039d3 gdi32: Simplify the code for charmap selection. 2012-10-26 16:29:26 +02:00
Alexandre Julliard 86abd84167 gdi32: Fix mapping of symbol font glyphs even when no encoding is specified. 2012-10-25 11:54:33 +02:00
André Hentschel f5df798611 gdi32: Fix free of address-of expression (coverity). 2012-10-25 11:48:15 +02:00
André Hentschel cf95218f08 gdi32: Fix copy-paste error (coverity). 2012-10-24 19:38:20 +02:00
Alexandre Julliard 4396a79ede gdi32: Add a DC hook flag to reset the DC state. 2012-10-24 18:24:03 +02:00
Alexandre Julliard 77c1856d43 gdi32: Remove an unused DC field. 2012-10-24 18:22:29 +02:00
Alexandre Julliard 5c1a752d61 gdi32: Export a function to retrieve the module handle of the graphics driver for a DC. 2012-10-22 15:16:00 +02:00
Alexandre Julliard b0ba7c765e gdi32: Update the ref count of stock objects when deleting a DC. 2012-10-21 12:18:46 +02:00
Huw Davies aa9827b08e gdi32: Move the string rendering code to a common function. 2012-10-19 18:09:52 +02:00
Huw Davies e6c349d69f gdi32: Use the helper to draw the glyphs. 2012-10-19 18:09:49 +02:00
Huw Davies 3e7517328d gdi32: Pass individual x, y co-ords to draw_glyph rather than a POINT. 2012-10-19 18:09:46 +02:00
Huw Davies 3ef520650c gdi32: Pass a dib_info structure to draw_glyph. 2012-10-19 18:09:44 +02:00
Qian Hong 648a8ce40e gdi32/tests: Fixed typo in localized name tests. 2012-10-19 11:18:20 +02:00
Qian Hong 16f2a1948e gdi32/tests: Declared system_lang_id as a global variable. 2012-10-19 11:18:11 +02:00
Qian Hong f9546329b6 gdi32/tests: Marked EnumFontFamiliesEx_default_charset test on Arabic locale as broken. 2012-10-19 11:17:59 +02:00
Qian Hong 284b382aba gdi32/tests: Skip some broken bitmap font metrics tests on Arabic locale. 2012-10-19 11:17:47 +02:00
Qian Hong b31dababde gdi32/tests: Fixed broken value in bitmap font metrics on Arabic locale. 2012-10-19 11:17:38 +02:00
Qian Hong ec9166b1ac gdi32/tests: Fixed broken bitmap font metrics test on CJK locales. 2012-10-19 11:17:25 +02:00
Qian Hong 416664babd gdi32/tests: Fixed broken value in bitmap font metrics on Japanese locale. 2012-10-19 11:17:15 +02:00
Alexandre Julliard 446bff7897 gdi32/tests: Avoid deleting invalid objects. 2012-10-18 22:28:45 +02:00
Huw Davies 64e2ad5709 gdi32: Make get_glyph_bitmap return a dib_info structure in order to avoid code duplication. 2012-10-18 19:22:14 +02:00
Alexandre Julliard 091c342f32 gdi32: Add a generation count in the high word of GDI handles. 2012-10-17 21:38:07 +02:00
Alexandre Julliard df357093cc gdi32: Get rid of the GDIOBJHDR type. 2012-10-17 13:48:45 +02:00
Alexandre Julliard 3964aa4a8d gdi32: Get rid of the METAFILEOBJ type, instead store a pointer to the metafile data. 2012-10-17 13:46:40 +02:00
Alexandre Julliard 89ecf02ca5 gdi32: Get rid of the RGNOBJ type, instead store a pointer to the region itself. 2012-10-17 13:28:25 +02:00
Alexandre Julliard dfeeedcf74 gdi32: Store the object flags directly in the GDI handle table. 2012-10-17 13:27:54 +02:00
Alexandre Julliard b95dd7e831 gdi32: Store the object selection count directly in the GDI handle table. 2012-10-17 13:17:56 +02:00
Alexandre Julliard 5f14ff42a8 gdi32: Process the object HDC list outside of the critical section. 2012-10-17 13:10:23 +02:00
Alexandre Julliard 2e693d00c9 gdi32: Store the HDC list directly in the GDI handle table. 2012-10-17 13:10:23 +02:00
Alexandre Julliard cf3cafdc18 gdi32: Store the object function table directly in the GDI handle table. 2012-10-17 13:10:22 +02:00
Alexandre Julliard 2bdf447744 gdi32: Store the object type directly in the GDI handle table. 2012-10-17 13:10:21 +02:00
Alexandre Julliard 36f2b09632 gdi32: Always return the full DIB surface in GetImage and adjust coordinates accordingly.
Based on a patch by Ken Thomases.
2012-10-15 15:25:04 +02:00
Alexandre Julliard 2f92af70e0 gdi32: Add helper functions for converting between handle and index.
Also rename all instances of "large handles" since that's the only handle type now.
2012-10-12 11:36:24 +02:00
Daniel Lehman ea6e0a833b gdi32: Use HandleToULong inline function to convert handle to index instead of casting. 2012-10-12 11:27:58 +02:00
Alexandre Julliard 6e325afaa7 gdi32: Handle a missing source alpha directly in the blend_rect primitive instead of modifying the source data. 2012-10-10 20:34:08 +02:00
Alexandre Julliard 76272e0773 gdi32: Use BI_BITFIELDS to indicate that a 32-bpp DIB doesn't have an alpha channel. 2012-10-10 20:34:08 +02:00
Alexandre Julliard 34b70728f3 gdi32: Limit the allocation size to the useful data when converting DIB bits. 2012-10-10 20:34:07 +02:00
Alexandre Julliard 86cf1126a5 gdi32: Return the full DIB height in GetImage instead of clipping to the visible rect. 2012-10-10 20:34:07 +02:00
Huw Davies 0941fefbc0 gdi32: Correctly map the 256-level bitmap to the 5, 17 and 65-level bitmaps. 2012-10-01 12:12:15 +02:00
Francois Gouget f77605c765 gdi32: Make dibdrv_wgl{Describe,Set}PixelFormat() static. 2012-10-01 11:59:58 +02:00
Alexandre Julliard 7eb49ae703 gdi32: Enumerate a default charset if no other valid charset was found. 2012-09-27 14:39:24 +02:00
Alexandre Julliard f0e4062773 gdi32: Allow GetCharABCWidths on all scalable fonts, not just TrueType ones. 2012-09-27 13:13:43 +02:00
Francois Gouget 5f55a71b70 Assorted spelling fixes. 2012-09-24 22:27:29 +02:00
Alexandre Julliard e95cff0332 gdi32: Always update the DC before looking for the physdev pointer. 2012-09-20 21:07:04 +02:00
Michael Stefaniuc f824030a49 gdi32: Don't bother using the register storage class specifier. 2012-09-14 15:41:45 +02:00
Qian Hong df8be7b81a gdi32: Prepend at in get_outline_text_metrics for vertical fonts. 2012-09-12 16:04:53 +02:00
Qian Hong 2f76f35e46 gdi32/tests: Added more tests for vertical fonts. 2012-09-12 16:04:47 +02:00
Qian Hong 97904fd1ff gdi32: Prepend at when create vertical font face. 2012-09-12 16:04:34 +02:00