honey_the_codewitch

arggg

Mar 26th, 2022
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. for(int y = 0;y<h;++y) {
  2.     const int yy = (y+b.y1)&7;
  3.     const int xx = b.x1 + (y/8)*???; // fuck
  4.     const size_t offs = ((y+b.y1)*width+(b.x1));
  5.     uint8_t* const pbegin = m_frame_buffer+(offs/8);
  6.     bits::set_bits(pbegin,offs%8,w,color);
  7. }
Add Comment
Please, Sign In to add comment