Skip to content

Commit 5525872

Browse files
Osirium glyph cache modifications
1 parent 24abf42 commit 5525872

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

common/xrdp_constants.h

+3
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@
256256
#define RDP_CAPSET_BRUSHCACHE 15
257257
#define RDP_CAPLEN_BRUSHCACHE 0x08
258258

259+
#define RDP_CAPSET_GLYPHCACHE 16
260+
#define RDP_CAPLEN_GLYPHCACHE 0x34
261+
259262
#define RDP_CAPSET_BITMAP_OFFSCREEN 18
260263
#define RDP_CAPLEN_BITMAP_OFFSCREEN 0x08
261264

neutrinordp/xrdp-neutrinordp.c

+4-9
Original file line numberDiff line numberDiff line change
@@ -991,15 +991,13 @@ lfreerdp_cache_glyph(rdpContext *context, CACHE_GLYPH_ORDER *cache_glyph_order)
991991

992992
for (index = 0; index < cache_glyph_order->cGlyphs; index++)
993993
{
994-
gd = cache_glyph_order->glyphData[index];
995-
LLOGLN(10, (" %d %d %d %d %d", gd->cacheIndex, gd->x, gd->y,
994+
gd = &cache_glyph_order->glyphData[index];
995+
LLOGLN(10, ("Index %d TL:%d,%d WH:%d,%d", gd->cacheIndex, gd->x, gd->y,
996996
gd->cx, gd->cy));
997997
mod->server_add_char(mod, cache_glyph_order->cacheId, gd->cacheIndex,
998998
gd->x, gd->y, gd->cx, gd->cy, (char *)(gd->aj));
999999
free(gd->aj);
10001000
gd->aj = 0;
1001-
free(gd);
1002-
cache_glyph_order->glyphData[index] = 0;
10031001
}
10041002

10051003
free(cache_glyph_order->unicodeCharacters);
@@ -1065,9 +1063,6 @@ lfreerdp_cache_brush(rdpContext *context, CACHE_BRUSH_ORDER *cache_brush_order)
10651063
LLOGLN(10, ("lfreerdp_cache_brush: out bpp %d cx %d cy %d idx %d bytes %d",
10661064
bpp, cx, cy, idx, bytes));
10671065

1068-
free(cache_brush_order->data);
1069-
cache_brush_order->data = 0;
1070-
10711066
}
10721067

10731068
/******************************************************************************/
@@ -1401,8 +1396,8 @@ lfreerdp_pre_connect(freerdp *instance)
14011396

14021397
instance->settings->glyph_cache = true;
14031398
/* GLYPH_SUPPORT_FULL and GLYPH_SUPPORT_PARTIAL seem to be the same */
1404-
instance->settings->glyphSupportLevel = GLYPH_SUPPORT_FULL;
1405-
instance->settings->order_support[NEG_GLYPH_INDEX_INDEX] = 1;
1399+
instance->settings->glyphSupportLevel = GLYPH_SUPPORT_NONE;
1400+
instance->settings->order_support[NEG_GLYPH_INDEX_INDEX] = 0;
14061401
instance->settings->order_support[NEG_FAST_GLYPH_INDEX] = 0;
14071402
instance->settings->order_support[NEG_FAST_INDEX_INDEX] = 0;
14081403
instance->settings->order_support[NEG_SCRBLT_INDEX] = 1;

0 commit comments

Comments
 (0)