libfreerdp-core: tweak capabilities to be closer to 0.9

This commit is contained in:
Marc-André Moreau 2011-12-12 19:57:24 -05:00
parent 243090323d
commit f2172bff70
2 changed files with 16 additions and 16 deletions

View File

@ -817,19 +817,18 @@ void rdp_write_glyph_cache_capability_set(STREAM* s, rdpSettings* settings)
header = rdp_capability_set_start(s);
/* glyphCache (40 bytes) */
rdp_write_cache_definition(s, &settings->glyphCache[0]);
rdp_write_cache_definition(s, &settings->glyphCache[1]);
rdp_write_cache_definition(s, &settings->glyphCache[2]);
rdp_write_cache_definition(s, &settings->glyphCache[3]);
rdp_write_cache_definition(s, &settings->glyphCache[4]);
rdp_write_cache_definition(s, &settings->glyphCache[5]);
rdp_write_cache_definition(s, &settings->glyphCache[6]);
rdp_write_cache_definition(s, &settings->glyphCache[7]);
rdp_write_cache_definition(s, &settings->glyphCache[8]);
rdp_write_cache_definition(s, &settings->glyphCache[9]);
rdp_write_cache_definition(s, &settings->glyphCache[0]); /* glyphCache0 (4 bytes) */
rdp_write_cache_definition(s, &settings->glyphCache[1]); /* glyphCache1 (4 bytes) */
rdp_write_cache_definition(s, &settings->glyphCache[2]); /* glyphCache2 (4 bytes) */
rdp_write_cache_definition(s, &settings->glyphCache[3]); /* glyphCache3 (4 bytes) */
rdp_write_cache_definition(s, &settings->glyphCache[4]); /* glyphCache4 (4 bytes) */
rdp_write_cache_definition(s, &settings->glyphCache[5]); /* glyphCache5 (4 bytes) */
rdp_write_cache_definition(s, &settings->glyphCache[6]); /* glyphCache6 (4 bytes) */
rdp_write_cache_definition(s, &settings->glyphCache[7]); /* glyphCache7 (4 bytes) */
rdp_write_cache_definition(s, &settings->glyphCache[8]); /* glyphCache8 (4 bytes) */
rdp_write_cache_definition(s, &settings->glyphCache[9]); /* glyphCache9 (4 bytes) */
/* fragCache */
rdp_write_cache_definition(s, &settings->fragCache);
rdp_write_cache_definition(s, &settings->fragCache); /* fragCache (4 bytes) */
stream_write_uint16(s, settings->glyphSupportLevel); /* glyphSupportLevel (2 bytes) */
@ -867,7 +866,7 @@ void rdp_read_offscreen_bitmap_cache_capability_set(STREAM* s, uint16 length, rd
void rdp_write_offscreen_bitmap_cache_capability_set(STREAM* s, rdpSettings* settings)
{
uint8* header;
uint32 offscreenSupportLevel;
uint32 offscreenSupportLevel = false;
header = rdp_capability_set_start(s);

View File

@ -97,6 +97,7 @@ rdpSettings* settings_new(void* instance)
settings->color_pointer = true;
settings->large_pointer = true;
settings->pointer_cache_size = 32;
settings->sound_beeps = true;
settings->draw_gdi_plus = false;
@ -129,9 +130,9 @@ rdpSettings* settings_new(void* instance)
settings->glyphCache[8].cacheEntries = 254;
settings->glyphCache[8].cacheMaximumCellSize = 256;
settings->glyphCache[9].cacheEntries = 64;
settings->glyphCache[9].cacheMaximumCellSize = 248;
settings->fragCache.cacheEntries = 64;
settings->fragCache.cacheMaximumCellSize = 248;
settings->glyphCache[9].cacheMaximumCellSize = 256;
settings->fragCache.cacheEntries = 256;
settings->fragCache.cacheMaximumCellSize = 256;
settings->offscreen_bitmap_cache = true;
settings->offscreen_bitmap_cache_size = 7680;