Commit 829568e6de8fb3f7ce008cb6181b43e59e744b06

Authored by perry.werneck@gmail.com
1 parent f0298d3d

Movendo mais campos para a estrutura de sessão

Showing 4 changed files with 10 additions and 10 deletions   Show diff stats
appres.h
... ... @@ -50,7 +50,7 @@ typedef struct {
50 50 // #endif /*]*/
51 51  
52 52 /* Options (not toggles) */
53   - char mono;
  53 +// char mono;
54 54 // char extended;
55 55 // char m3279;
56 56 // char modified_sel;
... ...
ctlr.c
... ... @@ -258,7 +258,7 @@ void ctlr_set_rows_cols(H3270 *session, int mn, int ovc, int ovr)
258 258 // Make sure that the current rows/cols are still 24x80.
259 259 session->cols = 80;
260 260 session->rows = 24;
261   - session->screen_alt = False;
  261 + session->screen_alt = 0;
262 262 */
263 263  
264 264 }
... ...
glue.c
... ... @@ -133,7 +133,7 @@ static void initialize(void)
133 133 Trace("%s (init_calls: %d)",__FUNCTION__,init_calls);
134 134  
135 135 /* Set the defaults. */
136   - appres.mono = False;
  136 +// appres.mono = False;
137 137 // appres.extended = True;
138 138  
139 139 #if defined(C3270) /*[*/
... ... @@ -318,9 +318,9 @@ static const struct lib3270_option options[] =
318 318 // { OptLocalEncoding,OPT_STRING,False,ResLocalEncoding,offset(local_encoding), NULL },
319 319 //#endif /*]*/
320 320 { OptModel, OPT_STRING, False, ResKeymap, offset(model), N_( "Set terminal model (screen size)" ) },
321   -#if !defined(_WIN32) /*[*/
322   - { OptMono, OPT_BOOLEAN, True, ResMono, offset(mono), N_( "Forces monochrome display" ) },
323   -#endif /*]*/
  321 +// #if !defined(_WIN32) /*[*/
  322 +// { OptMono, OPT_BOOLEAN, True, ResMono, offset(mono), N_( "Forces monochrome display" ) },
  323 +// #endif /*]*/
324 324 // { OptOnce, OPT_BOOLEAN, True, ResOnce, offset(once), NULL },
325 325 // { OptOversize, OPT_STRING, False, ResOversize, offset(oversize), N_( "Sets the screen dimensions to be larger than the default for the chosen model (COLSxROWS)." ) },
326 326 { OptPort, OPT_STRING, False, ResPort, offset(port), N_( "The name of the default TCP port to connect" ) },
... ... @@ -429,9 +429,9 @@ static struct {
429 429 // { ResM3279, offset(m3279), XRM_BOOLEAN },
430 430 // { ResModel, offset(model), XRM_STRING },
431 431 // { ResModifiedSel, offset(modified_sel), XRM_BOOLEAN },
432   -#if defined(C3270) && !defined(_WIN32) /*[*/
433   - { ResMono, offset(mono), XRM_BOOLEAN },
434   -#endif /*]*/
  432 +//#if defined(C3270) && !defined(_WIN32) /*[*/
  433 +// { ResMono, offset(mono), XRM_BOOLEAN },
  434 +//#endif /*]*/
435 435 { ResNumericLock, offset(numeric_lock), XRM_BOOLEAN },
436 436 { ResOerrLock, offset(oerr_lock), XRM_BOOLEAN },
437 437 // { ResOversize, offset(oversize), XRM_STRING },
... ...
init.c
... ... @@ -186,7 +186,7 @@ static void lib3270_session_init(H3270 *hSession, const char *model)
186 186 #endif
187 187 }
188 188  
189   - if(appres.mono)
  189 + if(hSession->mono)
190 190 hSession->m3279 = 0;
191 191 else
192 192 hSession->m3279 = 1;
... ...