Difference for 2d/bitblt.c from version 1.9 to 1.10


version 1.9 version 1.10
Line 19
 
Line 19
  * Routines for bitblt's.   * Routines for bitblt's.
  *   *
  * $Log$   * $Log$
    * Revision 1.10  2003/03/09 06:34:08  donut
    * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned
    *
  * Revision 1.9  2000/10/27 09:23:00  donut   * Revision 1.9  2000/10/27 09:23:00  donut
  * make show_fullscr accelerate scaling with OGL if possible   * make show_fullscr accelerate scaling with OGL if possible
  *   *
Line 1024
 
Line 1027
   
 // rescalling bitmaps, 10/14/99 Jan Bobrowski jb@wizard.ae.krakow.pl  // rescalling bitmaps, 10/14/99 Jan Bobrowski jb@wizard.ae.krakow.pl
   
 inline void scale_line(byte *in, byte *out, int ilen, int olen)  inline void scale_line(sbyte *in, sbyte *out, int ilen, int olen)
 {  {
  int a = olen/ilen, b = olen%ilen;   int a = olen/ilen, b = olen%ilen;
  int c = 0, i;   int c = 0, i;
  byte *end = out + olen;   sbyte *end = out + olen;
  while(out<end) {   while(out<end) {
  i = a;   i = a;
  c += b;   c += b;
Line 1046
 
Line 1049
   
 void gr_bitmap_scale_to(grs_bitmap *src, grs_bitmap *dst)  void gr_bitmap_scale_to(grs_bitmap *src, grs_bitmap *dst)
 {  {
  byte *s = src->bm_data;   sbyte *s = src->bm_data;
  byte *d = dst->bm_data;   sbyte *d = dst->bm_data;
  int h = src->bm_h;   int h = src->bm_h;
  int a = dst->bm_h/h, b = dst->bm_h%h;   int a = dst->bm_h/h, b = dst->bm_h%h;
  int c = 0, i, y;   int c = 0, i, y;

Legend:
line(s) removed in v.1.9 
line(s) changed
 line(s) added in v.1.10