Guest User

Untitled

a guest
Jun 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. DFile::CEL& make_tranp(DFile::CEL& cel){
  2. bool trnp = false;
  3.  
  4. for(int y = 0; y < cel.height; ++y){
  5. int offh = y * cel.width;
  6. trnp = !trnp;
  7. for(int x = 0; x < cel.width; ++x){
  8. if(trnp = !trnp)
  9. cel.data[x + offh] = 256;
  10. }
  11. }
  12. }
Add Comment
Please, Sign In to add comment