diff options
author | Rr42 | 2018-06-18 14:38:31 +0530 |
---|---|---|
committer | Rr42 | 2018-06-18 14:38:31 +0530 |
commit | 3b50889ec56fedae54d7e9173006f6332a77fb02 (patch) | |
tree | 3f032434829542796968b62d955bf196e30a321e | |
parent | 5212a10cc69b42b32b0dfb4c48e6c9d3b596dec6 (diff) | |
download | LDMicroGtk-3b50889ec56fedae54d7e9173006f6332a77fb02.tar.gz LDMicroGtk-3b50889ec56fedae54d7e9173006f6332a77fb02.tar.bz2 LDMicroGtk-3b50889ec56fedae54d7e9173006f6332a77fb02.zip |
Removed unnecessary code from LD_WM_Paint_call
-rw-r--r-- | ldmicro/ldmicro.cpp | 58 |
1 files changed, 21 insertions, 37 deletions
diff --git a/ldmicro/ldmicro.cpp b/ldmicro/ldmicro.cpp index 18b4f50..9a5c9a3 100644 --- a/ldmicro/ldmicro.cpp +++ b/ldmicro/ldmicro.cpp @@ -1053,57 +1053,41 @@ gboolean LD_WM_Paint_call(HWID widget, HCRDC cr, gpointer data) g_print("draw called\n"); - guint width, height; - GdkRGBA color; - GtkStyleContext *context; + // guint width, height; + // GdkRGBA color; + // GtkStyleContext *context; - context = gtk_widget_get_style_context (widget); + // context = gtk_widget_get_style_context (widget); - width = gtk_widget_get_allocated_width (widget); - height = gtk_widget_get_allocated_height (widget); - // g_print("w = %i\n", width); - // g_print("h = %i\n", height); + // width = gtk_widget_get_allocated_width (widget); + // height = gtk_widget_get_allocated_height (widget); + // // g_print("w = %i\n", width); + // // g_print("h = %i\n", height); - // SetBkColor(widget, cr, HighlightColours.bg); + // // SetBkColor(widget, cr, HighlightColours.bg); - gtk_render_background (context, cr, 0, 0, width, height); + // gtk_render_background (context, cr, 0, 0, width, height); - // cairo_arc (cr, - // width / 2.0, height / 2.0, - // MIN (width, height) / 3.0, - // 0, 2 * G_PI); + // // cairo_arc (cr, + // // width / 2.0, height / 2.0, + // // MIN (width, height) / 3.0, + // // 0, 2 * G_PI); - cairo_rectangle(cr, 0, 0, width, height); - cairo_stroke_preserve(cr); - - gtk_style_context_get_color (context, - gtk_style_context_get_state (context), - &color); - gdk_cairo_set_source_rgba (cr, &color); + // cairo_rectangle(cr, 0, 0, width, height); + // cairo_stroke_preserve(cr); - cairo_fill (cr); + // gtk_style_context_get_color (context, + // gtk_style_context_get_state (context), + // &color); + // gdk_cairo_set_source_rgba (cr, &color); - // SetTextColor(cr, HighlightColours.rungNum); - // SelectObject(cr, FixedWidthFont); + // cairo_fill (cr); - // for(int i = 10; i<500; i+=20) - // { - // TextOut(DrawWindow, cr, 20, i, "-------] [-------------------------------------------------------------------------------------------------------------------------------------------------{RES}-------", 14); - // } - Hdc = cr; /// This draws the schematic. PaintWindow(); - // cairo_set_source_rgb(cr, 0.6, 0.6, 0.6); - // cairo_set_line_width(cr, 1); - - // cairo_rectangle(cr, 20, 20, 120, 80); - // cairo_rectangle(cr, 180, 20, 80, 80); - // cairo_stroke_preserve(cr); - // cairo_fill(cr); - return FALSE; } |