Difference for main/kconfig.c from version 1.7 to 1.8


version 1.7 version 1.8
Line 19
 
Line 19
  * Routines to configure keyboard, joystick, etc..   * Routines to configure keyboard, joystick, etc..
  *    *
  * $Log$   * $Log$
    * Revision 1.8  2000/10/27 02:57:28  donut
    * key/joy/etc config boxes and text appear in the right places when modifying config
    *
  * Revision 1.7  2000/10/17 22:14:29  sekmu   * Revision 1.7  2000/10/17 22:14:29  sekmu
  * mingw version joystick 0 movement bug fixed   * mingw version joystick 0 movement bug fixed
  *   *
Line 424
 
Line 427
   
 char *btype_text[] = { "BT_KEY", "BT_MOUSE_BUTTON", "BT_MOUSE_AXIS", "BT_JOY_BUTTON", "BT_JOY_AXIS", "BT_INVERT" };  char *btype_text[] = { "BT_KEY", "BT_MOUSE_BUTTON", "BT_MOUSE_AXIS", "BT_JOY_BUTTON", "BT_JOY_AXIS", "BT_INVERT" };
   
 #define INFO_Y 188  #define INFO_Y (188*scale) //scale to res. -MPM
   
 typedef struct kc_item {  typedef struct kc_item {
         short id;               // The id of this item          short id;               // The id of this item
Line 1219
 
Line 1222
  looper++;   looper++;
  if (looper>63) looper=0;   if (looper>63) looper=0;
   
  gr_urect( item->w1+item->x, item->y-1, item->w1+item->x+item->w2, item->y+h );   gr_urect( (item->w1+item->x)*scale, item->y*scale-1, (item->w1+item->x+item->w2)*scale, item->y*scale+h );
    
  gr_set_fontcolor( BM_XRGB(28,28,28), -1 );   gr_set_fontcolor( BM_XRGB(28,28,28), -1 );
   
  x = item->w1+item->x+((item->w2-w)/2);   x = (item->w1+item->x)*scale+((item->w2*scale-w)/2);
   
  gr_string( x, item->y, "?" );   gr_string( x, item->y*scale, "?" );
   
         gr_update();          gr_update();
 }  }
Line 1280
 
Line 1283
  kc_drawitem( item, 1 );   kc_drawitem( item, 1 );
  gr_set_fontcolor( BM_XRGB(28,28,28), BM_XRGB(0,0,0) );   gr_set_fontcolor( BM_XRGB(28,28,28), BM_XRGB(0,0,0) );
   
  nm_restore_background( 0, INFO_Y, 310, grd_curcanv->cv_font->ft_h );   nm_restore_background( 0, INFO_Y, GWIDTH-10, grd_curcanv->cv_font->ft_h );
   
  game_flush_inputs();   game_flush_inputs();
   
Line 1362
 
Line 1365
  item->value = code;   item->value = code;
  }   }
  kc_drawitem( item, 1 );   kc_drawitem( item, 1 );
  nm_restore_background( 0, INFO_Y, 310, grd_curcanv->cv_font->ft_h );   nm_restore_background( 0, INFO_Y, GWIDTH-10, grd_curcanv->cv_font->ft_h );
  game_flush_inputs();   game_flush_inputs();
 }  }
   
Line 1412
 
Line 1415
  item->value = code;   item->value = code;
  }   }
  kc_drawitem( item, 1 );   kc_drawitem( item, 1 );
  nm_restore_background( 0, INFO_Y, 310, grd_curcanv->cv_font->ft_h );   nm_restore_background( 0, INFO_Y, GWIDTH-10, grd_curcanv->cv_font->ft_h );
  game_flush_inputs();   game_flush_inputs();
   
 }  }
Line 1497
 
Line 1500
  item->value = code;    item->value = code;
  }   }
  kc_drawitem( item, 1 );   kc_drawitem( item, 1 );
  nm_restore_background( 0, INFO_Y, 310, grd_curcanv->cv_font->ft_h );   nm_restore_background( 0, INFO_Y, GWIDTH-10, grd_curcanv->cv_font->ft_h );
  game_flush_inputs();   game_flush_inputs();
   
 }  }
Line 1550
 
Line 1553
  item->value = code;   item->value = code;
  }   }
  kc_drawitem( item, 1 );   kc_drawitem( item, 1 );
  nm_restore_background( 0, INFO_Y, 310, grd_curcanv->cv_font->ft_h );   nm_restore_background( 0, INFO_Y, GWIDTH-10, grd_curcanv->cv_font->ft_h );
  game_flush_inputs();   game_flush_inputs();
   
 }  }

Legend:
line(s) removed in v.1.7 
line(s) changed
 line(s) added in v.1.8