Index: game.c ================================================================== --- game.c +++ game.c @@ -103,13 +103,22 @@ if(classes[inventory[y].class]->nimagesimages[inventory[y].image]&0x7FFF); } } else { // Move list - + snprintf(buf,8,"%5d",replay_pos); + draw_text(8,52,buf,0xF0,0xF9); + snprintf(buf,8,"%5d",replay_count); + draw_text(8,screen->h-8,buf,0xF0,0xFC); + for(y=44,x=replay_pos-(screen->h-68)/32;;x++) { + y+=16; + if(y+24>screen->h) break; + if(x>=0 && xpixels; + Uint16 pitch=screen->pitch; + int xx,yy; + const unsigned char*f; + if(x<0 || y<0 || x+16>screen->w || y+16>screen->h) return; + p+=y*pitch+x; + f=keyicons_bits+(k<<5); + for(yy=0;yy<16;yy++) { + for(xx=0;xx<8;xx++) p[xx]=(*f>>xx)&1?fg:bg; + ++f; + for(xx=0;xx<8;xx++) p[xx+8]=(*f>>xx)&1?fg:bg; + p+=pitch; + ++f; + } +} const char*screen_prompt(const char*txt) { static char*t=0; int n=0; SDL_Rect r={0,0,screen->w,16};