Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (width % 8 == 0)
- {
- if ((width / 8) % 4 != 0)
- {
- withOffset = width + ((4 - (width / 8) % 4)) * 8;
- offsetByte = 4 - ((width / 8) % 4);
- }
- else
- {
- withOffset = width;
- offsetByte = 0;
- }
- }
- else
- {
- if (((width / 8) + 1) % 4 != 0)
- {
- withOffset = (width / 8 + 1) * 8 + ((4 - (width / 8 + 1) % 4)) * 8;
- offsetByte = (4 - ((width / 8 + 1) % 4));
- }
- else
- {
- withOffset = width;
- offsetByte = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement