Bernhard Miklautz
79de8168f9
Integrate feedback from pull request
...
* orders.c: remove ; at eol
* rdpdr_main.c: simplify error case
* rdpsnd_pulse.c: fix incorrect check
* rdpsnd_main.c: adapt return value according to documentation
* update.c: fix incorrect return values
2015-03-30 18:29:32 +02:00
Bernhard Miklautz
74c8400789
coding style fixes
...
Add missing space after if
2015-03-30 17:15:45 +02:00
Bernhard Miklautz
f469e069dc
stream: Stream_Ensure*Capacity: change return type
...
Change the return type of Stream_Ensure*Capacity from void to BOOL to be
able to detect realloc problems easily. Otherwise the only way to detect
this was to check if the capacity after the call was >= the required
size.
In case Stream_Ensure*Capacity fails the old memory is still available
and need to freed outside.
This commit also adds checks to most calls of Stream_Ensure*Capacity to
check if the call was successful.
2015-03-30 16:33:48 +02:00
Jean-Louis Dupond
ede7993fe8
libfreerdp-core: Initialize values correctly
2015-03-15 14:09:16 +01:00
Jean-Louis Dupond
8a0fe0861d
fix size error introduced in commit 99b14815a5
2015-03-15 11:50:10 +01:00
Zhang Zhaolong
99b14815a5
core: fix incorrect usage of realloc.
...
realloc can handle the case that its first parameter is NULL.
Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
2015-03-11 13:40:20 +08:00
Marc-André Moreau
fdd2dc7601
freerdp: patch valgrind leaks, cleanup
2014-12-03 14:17:27 -05:00
Zhang Zhaolong
3de5c62bf3
fix polyline.
2014-10-09 18:11:38 +08:00
Armin Novak
2f519d7f16
Replaced logging in libfreerdp with wlog defines.
2014-09-15 08:48:46 +02:00
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