Peter Hull
Peter Hull
I think we ought to keep this open if there is a bug - your code ought to work AFAICS.
Could you provide a bit more info, specifically which version of Allegro are you using, and what is the allegro-test program you are using? if you could write and share...
I tried on Mac:  I also added the line al_draw_bitmap_region(img, 24.0f, 14.0f, 24.0f, 14.0f, 10.0f, 70.0f, 0); As suggested, using 70.0f instead of 70.5f it looks ok. Also attached...
Just thinking out loud but how about storing the palette in the ALLEGRO_BITMAP during loading and providing an accessor function for it? int al_get_bitmap_palette(ALLEGRO_BITMAP*, ALLEGRO_PALETTE*); // return value = number...
A bit of code beats pontification any day! My only concern was that it was doubling up the number of bitmap API functions. One more thought - would we ever...
I had a go at implementing a "get palette" function, just to see how it might pan out. Only implemented for Windows BMP at the moment and it also uses...
I just wanted to see if it was feasible/reasonable; those who are Skilled In The Art will be able to implement it more nicely I'm sure. Regarding saving indexed bitmaps,...
Is this running under Rosetta or natively? On Thu, 15 Apr 2021 at 11:06, nodev ***@***.***> wrote: > Hi. I'm on macOS 11.2.3 on a M1 MacBook Air and Allegro...
That's quite similar to what is described as "old code that doesn't work on new OSX" that we have now (assuming that `kCGLCPSwapInterval` is the CoreGL equivalent of `NSOpenGLCPSwapInterval`) https://github.com/liballeg/allegro5/blob/05248497a19e6217746f5579645e57bfd7ee383e/src/macosx/osxgl.m#L1267-L1282...
Some relevant links so I don't forget: https://stackoverflow.com/questions/33490431/how-to-disable-vsync-on-mac-os-x-10-11-el-capitan https://stackoverflow.com/questions/12345730/how-to-disable-vsync-on-macos https://github.com/glfw/glfw/issues/1337 https://github.com/libsdl-org/SDL/commit/13869f194c5b975aefac6517e58998f11108d722 https://discourse.libsdl.org/t/sdl2-no-renderer-vsync-on-macos-mojave/25169 https://discourse.libsdl.org/t/mac-os-x-woes/7334