Commit 5365dc0b359d4eedbf4e6d1692ca12993b1cbf10

Authored by perry.werneck@gmail.com
1 parent 89693dd5
Exists in master

Removendo mudança forçada para 80x25 na troca de modelo para evitar redesenho desnecessário

Showing 2 changed files with 4 additions and 3 deletions   Show diff stats
src/lib/ctlr.c
@@ -248,10 +248,14 @@ void ctlr_set_rows_cols(H3270 *session, int mn, int ovc, int ovr) @@ -248,10 +248,14 @@ void ctlr_set_rows_cols(H3270 *session, int mn, int ovc, int ovr)
248 update_model_info(session,mn,session->ov_cols = ovc,session->ov_rows = ovr); 248 update_model_info(session,mn,session->ov_cols = ovc,session->ov_rows = ovr);
249 } 249 }
250 250
  251 + set_viewsize(session,sz[idx].rows,sz[idx].cols);
  252 +
  253 + /*
251 // Make sure that the current rows/cols are still 24x80. 254 // Make sure that the current rows/cols are still 24x80.
252 session->cols = 80; 255 session->cols = 80;
253 session->rows = 24; 256 session->rows = 24;
254 session->screen_alt = False; 257 session->screen_alt = False;
  258 + */
255 259
256 } 260 }
257 261
src/lib/screen.c
@@ -315,9 +315,6 @@ void update_model_info(H3270 *session, int model, int cols, int rows) @@ -315,9 +315,6 @@ void update_model_info(H3270 *session, int model, int cols, int rows)
315 /* Update the model name. */ 315 /* Update the model name. */
316 (void) sprintf(session->model_name, "327%c-%d%s",appres.m3279 ? '9' : '8',session->model_num,appres.extended ? "-E" : ""); 316 (void) sprintf(session->model_name, "327%c-%d%s",appres.m3279 ? '9' : '8',session->model_num,appres.extended ? "-E" : "");
317 317
318 - if(session->configure)  
319 - session->configure(session,rows,cols);  
320 -  
321 if(session->update_model) 318 if(session->update_model)
322 session->update_model(session, session->model_name,session->model_num,rows,cols); 319 session->update_model(session, session->model_name,session->model_num,rows,cols);
323 else if(callbacks && callbacks->model_changed) 320 else if(callbacks && callbacks->model_changed)