From: Matthew S. <ma...@th...> - 2000-11-19 21:50:25
|
----- Original Message ----- From: Matthew Smith <ma...@th...> This uses a smaller table and is just as fast short colores[512]; // these are 256 - one for each value of attr when bit=0 and no flash x2 and for each attr when bit = 1 draw_spectrum_line_16bpp ( short * output_line , char * spec_attr , char * spec_bitmap ) { int x,b,c; for ( x=0; x<32 ; x++ ) { b= spec_bitmap++ ; c= spec_attr++ ; if ( hardware_flash ) c ^= 256 ; // just reverse how bit is used output_line++ = colores[(b & 128) ? c ^ 256 : c]; etc you need an init_colores_por_spec_16bpp() routine which I can't write as I forget how the speccy attributes go :(P |