Open allebot opened 15 years ago
Original comment by: wangp
I would accept a patch for this. Shouldn't be hard to add.
Original comment by: slicer69
Patch to get drawing mode
Original comment by: slicer69
I have tried to write a patch for this, however, I can't get Allegro to compile on my system. It always bombs out while compiling some assembly code. I have to rely on my distro to package the library.
However, I did write a patch which I think will work. The function is really just one line to return the value of the variable _drawing_mod. The patch is attached. It modifies two find, the gfx.h and gfx.c files. I hope this will suffice.
Originally reported by: slicer69
Original Ticket: alleg/bugs/214
It's possible to set the drawing mode in Allegro 4.2 using the drawing_mode() function. I would like to see a function added to the stable (4.2) library or a future version which would retrieve the current drawing mode. At the moment, I have to maintain a flag to track this in threaded applications. Something called get_drawing_mode() for example, would be great.