Added BeginDraw and EndDraw stubs of glyph rendering.
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Mon, 9 Jan 2012 03:23:37 +0000 (19:23 -0800)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Mon, 9 Jan 2012 03:23:37 +0000 (19:23 -0800)
include/rdp_glyph.h
src/client.c
src/rdp_glyph.c

index 41ceb42..2ba6af4 100644 (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
index b357403..c9e23a3 100644 (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 */
index 07d01f5..bfb311a 100644 (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()");
+}
+