Marc-André Moreau
82a53057a1
Merge pull request #2023 from ptsekov/software-gdi-improvements
...
Software GDI improvements
2014-08-18 16:22:23 -04:00
Armin Novak
f4c133eaf8
Replaced custom logging mechanism with WLog wrapper.
2014-08-07 16:51:24 +02:00
Pavel Tsekov
c51c5df2ff
* include/freerdp/codec/color.h:
...
(freerdp_color_convert_drawing_order_color_to_gdi_color): Declare new
function.
* libfreerdp/codec/color.c:
(freerdp_color_convert_drawing_order_color_to_gdi_color): Implement.
(freerdp_image_convert_8bpp): Properly use the ARGB32/ABGR32/RGB32/BGR32
macros when converting 8bpp data to 32bpp.
(freerdp_image_convert_32bpp): Fix CLRCONV_ALPHA and CLRCONV_INVERT
processing for 32bpp destination.
(freerdp_mono_image_convert): Use ARGB32/ABGR32 when converting to 32bpp
and CLRCONV_ALPHA is set.
* libfreerdp/core/orders.c: Color data from drawing orders is
interpreted in big endian mode.
* libfreerdp/core/update.c (update_read_palette): Likewise.
* libfreerdp/gdi/16bpp.c (gdi_get_color_16bpp): GDI colors are stored as
RGB now.
* libfreerdp/gdi/32bpp.c (gdi_get_color_32bpp): Likewise.
* libfreerdp/gdi/gdi.c:
Use freerdp_color_convert_drawing_order_color_to_gdi_color() to convert
from drawing order color representation to GDI color representation
troughout.
* libfreerdp/gdi/graphics.c (gdi_Glyph_BeginDraw): Likewise.
(gdi_Glyph_EndDraw): Likewise.
2014-08-07 00:58:58 +03:00
Hardening
07e0eba7db
Check that bpp has reasonable value
...
As bpp is often used for malloc computations, let's check that it has
a reasonable value.
2014-05-29 10:12:02 +02:00
Hardening
597cba042a
Fix some compilation warnings
2014-04-29 16:02:31 +02:00
Hardening
c03c1c75f3
Fix typo in update_write_4byte_unsigned()
2014-04-27 23:21:30 +02:00
Marc-André Moreau
cdcd290c44
wfreerdp: fix most build warnings
2014-02-10 22:12:13 -05:00
Marc-André Moreau
3e3c0f1942
libfreerdp-core: fix potential asynchronous queuing memory problems for primary drawing orders
2013-11-03 13:29:48 -05:00
Marc-André Moreau
1fc2d780f7
libfreerdp-core: fix memory leaks reported by valgrind
2013-10-31 23:35:24 -04:00
Marc-André Moreau
a24d31be31
libfreerdp-core: refactor and add new WLog debug output for graphical orders
2013-10-10 13:00:04 -04:00
Bernhard Miklautz
c99d9ee72b
core/glyph: copy data when adding glyph to cache
...
fixes #1500
2013-09-24 23:25:18 +02:00
Marc-André Moreau
7246cf1f8f
libfreerdp-core: reduce usage of update_force_flush in server-side update code
2013-07-29 10:21:32 -04:00
Marc-André Moreau
404f66820b
libfreerdp-core: force flushing of updates
2013-06-09 20:37:58 -04:00
Marc-André Moreau
49b056bec0
libfreerdp-core: added orders buffer size approximation functions
2013-06-09 17:56:57 -04:00
Marc-André Moreau
fc592a1750
libfreerdp-core: replace usage of Stream_GetPointer() by Stream_GetPosition() in potentially unsafe places
2013-05-15 14:42:37 -04:00
Marc-André Moreau
367ebf32a3
freerdp: make use of stream macros to access members
2013-05-15 12:14:26 -04:00
Marc-André Moreau
c9ebd98e00
libfreerdp-core: stub and implement many new server-side graphical orders
2013-05-12 17:46:13 -04:00
Marc-André Moreau
268004d0c9
libfreerdp-core: start implementing server-side alternate secondary drawing orders
2013-05-12 13:42:53 -04:00
Marc-André Moreau
645dfd7d63
libfreerdp-core: start encoding server-side bounds
2013-05-09 19:41:32 -04:00
Marc-André Moreau
841c710e1c
libfreerdp-core: server-side update combining
2013-05-09 16:30:28 -04:00
Marc-André Moreau
565d50d486
libfreerdp-core: fix server-side patblt
2013-05-09 14:33:39 -04:00
Marc-André Moreau
fdf3ddcf9e
freerdp: purge deprecated stream utils
2013-05-08 17:48:30 -04:00
Marc-André Moreau
fd230443c5
freerdp: purge old stream utils
2013-05-08 16:27:21 -04:00
Marc-André Moreau
5b92413843
freerdp: purge deprecated stream utils
2013-05-08 16:09:16 -04:00
Marc-André Moreau
8c5dcabcfb
libfreerdp-core: partially fix server-side bitmap caching
2013-05-07 23:41:39 -04:00
Marc-André Moreau
c1f8f3746d
libfreerdp-core: implement server-side cache glyph v1/v2
2013-05-07 18:44:22 -04:00
Marc-André Moreau
8446c61724
libfreerdp-core: improve primary order encoding
2013-05-07 17:40:54 -04:00
Marc-André Moreau
fe42b77118
libfreerdp-core: improve server-side primary order header construction
2013-05-07 15:33:52 -04:00
Marc-André Moreau
afefc7a57f
libfreerdp-core: added server-side PatBlt and ScrBlt
2013-05-07 12:45:52 -04:00
Marc-André Moreau
230380184d
libfreerdp-core: add server-side Memblt and CacheGlyph
2013-05-07 11:41:32 -04:00
Marc-André Moreau
e048147bde
libfreerdp-core: start implement server-side bitmap cache v2
2013-05-06 23:21:12 -04:00
Marc-André Moreau
95c5ea86b0
libfreerdp-core: start implementing server-side drawing orders
2013-05-06 22:27:19 -04:00
Marc-André Moreau
51715636a5
freerdp: remove some deprecated stream utils
2013-04-29 22:35:15 -04:00
Hardening
7701c9d934
Replace printf(...) by fprintf(stderr, ...)
2013-03-28 23:06:34 +01:00
Marc-André Moreau
a8201b0d1b
libwinpr-utils: combine old and new stream utils
2013-03-21 15:19:33 -04:00
Marc-André Moreau
62eec0c2b5
libfreerdp-utils: rename internal members of STREAM to match new wStream
2013-03-21 15:01:46 -04:00
Marc-André Moreau
e18a0b807f
libfreerdp-core: fix async updates with palettes
2013-02-03 16:19:25 -05:00
Marc-André Moreau
db331d64f7
libfreerdp-core: fix message queue ids, fix async glyph messages
2013-02-03 12:41:59 -05:00
Marc-André Moreau
a1f23d0f97
libfreerdp-core: cleanup memory management of secondary orders
2013-01-28 18:42:32 -05:00
Marc-André Moreau
f92f48bf9d
libfreerdp-core: added message queue stubs
2013-01-24 17:11:43 -05:00
Marc-André Moreau
ce5e52ba6f
libfreerdp-primitives: fix build on Windows
2013-01-18 20:47:18 -05:00
Marc-André Moreau
7ed7e1c9aa
freerdp: merging with master
2013-01-18 19:01:25 -05:00
Marc-André Moreau
930c9907ce
libfreerdp-core: code style cleanup
2013-01-18 16:50:25 -05:00
rdp.effort
46e7d94bf8
Added error messages when orders processing fails
...
Added a check for exponent_length
Added error messages for certificate parsing
2013-01-18 14:36:49 +01:00
rdp.effort
81c0e99ceb
Misc fixes and result checks
2013-01-13 23:37:50 +01:00
rdp.effort
4d259b5c8e
fixed a typo with stream_skip
...
according to GDI-2.2.2.2.1.2.4 numberColors is an UINT16
fixed a rewrite error in multi_patblt
2013-01-12 16:12:50 +01:00
rdp.effort
df08643184
Fixed a bogus last time change
2013-01-12 14:31:53 +01:00
rdp.effort
6fd03aba38
mechanize processing of graphical orders to improve security
2013-01-12 00:17:45 +01:00
Marc-André Moreau
8a32de3801
libfreerdp: purged source tree from deprecated memory utils
2012-11-21 21:22:06 -05:00
Marc-André Moreau
b3d8f79b5c
libfreerdp-utils: replace ARRAY_SIZE custom macro with ARRAYSIZE() windows macro
2012-11-21 20:50:28 -05:00