Commit 6ec691cf81e9a3ae733e661dea87bfefb515184d

Authored by perry.werneck@gmail.com
1 parent 30b7aec4
Exists in master and in 1 other branch develop

Muitas atualizacoes enfileiradas derrubam o windows 7 com falha dentro da ntdll.dll

Showing 3 changed files with 6 additions and 6 deletions   Show diff stats
draw.c
... ... @@ -355,11 +355,12 @@ void v3270_update_char(H3270 *session, int addr, unsigned char chr, unsigned sho
355 355 cairo_set_scaled_font(cr,terminal->font_scaled);
356 356 v3270_draw_element(cr, chr, attr, terminal->host, terminal->metrics.height, &rect,terminal->color);
357 357 cairo_destroy(cr);
358   -
359 358 if(cursor)
360 359 v3270_update_cursor_rect(terminal,&rect,chr,attr);
361 360  
  361 +#ifndef _WIN32
362 362 gtk_widget_queue_draw_area(GTK_WIDGET(terminal),rect.x,rect.y,rect.width,rect.height);
  363 +#endif // WIN32
363 364  
364 365 }
365 366  
... ...
oia.c
... ... @@ -641,8 +641,6 @@ void v3270_update_luname(GtkWidget *widget,const gchar *name)
641 641 if(!terminal->surface)
642 642 return;
643 643  
644   -// trace("%s",__FUNCTION__);
645   -
646 644 cr = set_update_region(terminal,&rect,V3270_OIA_LUNAME);
647 645  
648 646 if(name)
... ...
widget.c
... ... @@ -157,8 +157,6 @@ static GtkSizeRequestMode get_request_mode(GtkWidget *widget)
157 157 {
158 158 int rows, cols;
159 159  
160   - trace("%s",__FUNCTION__);
161   -
162 160 lib3270_get_screen_size(GTK_V3270(widget)->host,&rows,&cols);
163 161  
164 162 return rows > cols ? GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT : GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH;
... ... @@ -706,6 +704,10 @@ static void changed(H3270 *session, int offset, int len)
706 704 }
707 705 }
708 706  
  707 +#ifdef WIN32
  708 + gtk_widget_queue_draw(widget);
  709 +#endif // WIN32
  710 +
709 711 g_signal_emit(GTK_WIDGET(widget),v3270_widget_signal[SIGNAL_CHANGED], 0, (guint) offset, (guint) len);
710 712  
711 713 }
... ... @@ -739,7 +741,6 @@ static void message(H3270 *session, LIB3270_NOTIFY id , const char *title, const
739 741  
740 742 static void v3270_init(v3270 *widget)
741 743 {
742   - trace("%s",__FUNCTION__);
743 744 widget->host = lib3270_session_new("");
744 745  
745 746 if(widget->host->sz != sizeof(H3270))
... ...