scrolltext3.c: small optimization
This commit is contained in:
parent
5ad9905dee
commit
cc060261d4
|
@ -69,14 +69,9 @@ static void clear_text_pixmap(){
|
||||||
memset(text_pixmap, 0, NUM_ROWS * LINEBYTES);
|
memset(text_pixmap, 0, NUM_ROWS * LINEBYTES);
|
||||||
}
|
}
|
||||||
|
|
||||||
void update_pixmap(){
|
static void update_pixmap(){
|
||||||
unsigned char x, y, z;
|
for(unsigned char p = NUMPLANE; p--;){
|
||||||
for(x=NUMPLANE;x--;){
|
memcpy(&pixmap[p][0][0], text_pixmap, NUM_ROWS * LINEBYTES);
|
||||||
for(y=NUM_ROWS;y--;){
|
|
||||||
for(z=LINEBYTES;z--;){
|
|
||||||
pixmap[x][y][z] = (*text_pixmap)[y][z];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue