Mercurial > hg > dmlib
comparison tools/lib64gfx.c @ 918:59615f9c2ca9
Cosmetic.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 25 Feb 2015 05:16:22 +0200 |
parents | df3a74f230d9 |
children | 5a4d68b86c5b |
comparison
equal
deleted
inserted
replaced
917:df3a74f230d9 | 918:59615f9c2ca9 |
---|---|
886 // Hi-res charmap | 886 // Hi-res charmap |
887 for (xc = 0; xc < dst->width; xc++) | 887 for (xc = 0; xc < dst->width; xc++) |
888 { | 888 { |
889 const int x = xc / 8; | 889 const int x = xc / 8; |
890 const int scroffs = scroffsy + x; | 890 const int scroffs = scroffsy + x; |
891 const int chr = src->screen[0][scroffs]; | |
891 const int v = 7 - (xc & 7); | 892 const int v = 7 - (xc & 7); |
892 const int chr = src->screen[0][scroffs]; | |
893 | 893 |
894 if ((src->charmem[chr][yb] >> v) & 1) | 894 if ((src->charmem[chr][yb] >> v) & 1) |
895 *d++ = src->color[0][scroffs]; | 895 *d++ = src->color[0][scroffs]; |
896 else | 896 else |
897 *d++ = src->bgcolor; | 897 *d++ = src->bgcolor; |
904 | 904 |
905 for (xc = 0; xc < dst->width / wdivisor; xc++) | 905 for (xc = 0; xc < dst->width / wdivisor; xc++) |
906 { | 906 { |
907 const int x = xc / 4; | 907 const int x = xc / 4; |
908 const int scroffs = scroffsy + x; | 908 const int scroffs = scroffsy + x; |
909 const int chr = src->screen[0][scroffs]; | |
909 const int v = 6 - ((xc * 2) & 6); | 910 const int v = 6 - ((xc * 2) & 6); |
910 const int chr = src->screen[0][scroffs]; | |
911 Uint8 c; | 911 Uint8 c; |
912 | 912 |
913 switch ((src->charmem[chr][yb] >> v) & 3) | 913 switch ((src->charmem[chr][yb] >> v) & 3) |
914 { | 914 { |
915 case 0: c = src->bgcolor; break; | 915 case 0: c = src->bgcolor; break; |