I am running on a 32 bit machine.
I need to pass SDL the unsigned long 0xff000000 as a mask.
s = SDL::Surface.new_from(image_data, screen.w, screen.h, 32,
0x00ff0000, 0x0000ff00, 0x000000ff,
fails with “bignum too big to convert into `unsigned long’ (RangeError)”
which is very understandable, considering that Ruby uses the MSB of a
and thus Fixnums can only be 31bit on 32bit machines.
What’s the best idiom to get the mask so I can pass it?