diff options
author | Rr42 | 2018-06-15 10:05:39 +0530 |
---|---|---|
committer | Rr42 | 2018-06-15 10:05:39 +0530 |
commit | 7ee6d232a84e011ce51313912fa547058985987c (patch) | |
tree | 22776305882855538ed67deb8cf2d6058dd09ca9 | |
parent | 24a0e93b819ab10925688ed4596c3f90ce8e3f78 (diff) | |
download | LDMicroGtk-7ee6d232a84e011ce51313912fa547058985987c.tar.gz LDMicroGtk-7ee6d232a84e011ce51313912fa547058985987c.tar.bz2 LDMicroGtk-7ee6d232a84e011ce51313912fa547058985987c.zip |
Minor changes
-rw-r--r-- | ldmicro/draw_outputdev.cpp | 2 | ||||
-rw-r--r-- | ldmicro/lib/linuxUI/linuxUI.cpp | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/ldmicro/draw_outputdev.cpp b/ldmicro/draw_outputdev.cpp index fdb8bc2..c9a75d3 100644 --- a/ldmicro/draw_outputdev.cpp +++ b/ldmicro/draw_outputdev.cpp @@ -243,7 +243,7 @@ void PaintWindow(HCRDC hcr) SelectObject(hcr, FixedWidthFont); - TextOut(hcr, 50, 100, "-----HELLO----", 14); + TextOut(hcr, 5, 100, "-------] [-------------------------------------------------------------------------------------------------------------------------------------------------{RES}-------", 14); // static HBITMAP BackBitmap; // static HDC BackDc; // static int BitmapWidth; diff --git a/ldmicro/lib/linuxUI/linuxUI.cpp b/ldmicro/lib/linuxUI/linuxUI.cpp index 23ac060..70866f9 100644 --- a/ldmicro/lib/linuxUI/linuxUI.cpp +++ b/ldmicro/lib/linuxUI/linuxUI.cpp @@ -203,18 +203,18 @@ void SelectObject(HCRDC hcr, HFONT hfont) cairo_rotate(hcr, hfont->nOrientation); - cairo_text_extents_t extents; - cairo_text_extents (hcr, "H", &extents); + // cairo_text_extents_t extents; + // cairo_text_extents (hcr, "H", &extents); - cairo_matrix_t matrix; - cairo_matrix_init_scale (&matrix, - (double)hfont->nWidth / extents.width, - (double)hfont->nHeight / extents.width); + // cairo_matrix_t matrix; + // cairo_matrix_init_scale (&matrix, + // (double)hfont->nWidth / extents.width, + // (double)hfont->nHeight / extents.width); - cairo_set_font_matrix (hcr, &matrix); - g_print("wR = %f\nhR = %f\n", (double)hfont->nWidth / extents.width, (double)hfont->nHeight / extents.height); - g_print("tW = %f\ntH = %f\n", extents.width, extents.width); - // cairo_set_font_size(hcr, 20); + // cairo_set_font_matrix (hcr, &matrix); + // g_print("wR = %f\nhR = %f\n", (double)hfont->nWidth / extents.width, (double)hfont->nHeight / extents.height); + // g_print("tW = %f\ntH = %f\n", extents.width, extents.width); + cairo_set_font_size(hcr, 15); } HBRUSH CreateBrushIndirect(PLOGBRUSH plb) |