Guest User

Untitled

a guest
May 28th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1.         //Fixing the 4 blocks in each character
  2.         for(int chr;chr<256;chr++) {
  3.             uint16_t nchr[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
  4.             for(int x=0;x<16;x++) {
  5.                 if(x<8) {
  6.                     nchr[x]=font[chr][x]<<8; //Put the upper left part to the right
  7.                     nchr[x]|=font[chr][x+8]; //Put the lower left part up
  8.                 } else {
  9.                     nchr[x]=font[chr][x-8]; //Put the upper right part down
  10.                     nchr[x]|=font[chr][x]>>8; //Put the lower right part left
  11.                 }
  12.             }
  13.             for(int x=0;x<16;x++) {
  14.                 font[chr][x]=nchr[x];
  15.             }
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment