Added BeginDraw and EndDraw stubs of glyph rendering.

This commit is contained in:
Michael Jumper 2012-01-08 19:23:37 -08:00
parent d3302341e7
commit 6f059097cd
3 changed files with 18 additions and 0 deletions

View File

@ -59,5 +59,9 @@ typedef struct guac_rdp_glyph {
void guac_rdp_glyph_new(rdpContext* context, rdpGlyph* glyph);
void guac_rdp_glyph_draw(rdpContext* context, rdpGlyph* glyph, int x, int y);
void guac_rdp_glyph_free(rdpContext* context, rdpGlyph* glyph);
void guac_rdp_glyph_begindraw(rdpContext* context,
int x, int y, int width, int height, uint32 bgcolor, uint32 fgcolor);
void guac_rdp_glyph_enddraw(rdpContext* context,
int x, int y, int width, int height, uint32 bgcolor, uint32 fgcolor);
#endif

View File

@ -108,6 +108,8 @@ boolean rdp_freerdp_pre_connect(freerdp* instance) {
glyph->New = guac_rdp_glyph_new;
glyph->Free = guac_rdp_glyph_free;
glyph->Draw = guac_rdp_glyph_draw;
glyph->BeginDraw = guac_rdp_glyph_begindraw;
glyph->EndDraw = guac_rdp_glyph_enddraw;
graphics_register_glyph(context->graphics, glyph);
/* Set up pointer handling */

View File

@ -57,3 +57,15 @@ void guac_rdp_glyph_free(rdpContext* context, rdpGlyph* glyph) {
guac_client_log_info(client, "guac_rdp_glyph_free()");
}
void guac_rdp_glyph_begindraw(rdpContext* context,
int x, int y, int width, int height, uint32 bgcolor, uint32 fgcolor) {
guac_client* client = ((rdp_freerdp_context*) context)->client;
guac_client_log_info(client, "guac_rdp_glyph_begindraw()");
}
void guac_rdp_glyph_enddraw(rdpContext* context,
int x, int y, int width, int height, uint32 bgcolor, uint32 fgcolor) {
guac_client* client = ((rdp_freerdp_context*) context)->client;
guac_client_log_info(client, "guac_rdp_glyph_enddraw()");
}