[AD] [ alleg-Bugs-2821024 ] Way to get the current drawing mode |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Bugs item #2821024, was opened at 2009-07-13 20:43
Message generated for change (Comment added) made by slicer69
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2821024&group_id=5665
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core Library
Group: 4.4
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jesse Smith (slicer69)
Assigned to: Nobody/Anonymous (nobody)
Summary: Way to get the current drawing mode
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Jesse Smith (slicer69)
Date: 2009-08-06 20:56
Message:
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.
----------------------------------------------------------------------
Comment By: Peter Wang (tjaden)
Date: 2009-08-06 07:42
Message:
I would accept a patch for this. Shouldn't be hard to add.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2821024&group_id=5665