diff --git a/src/sys/lib/ogprintf.cc b/src/sys/lib/ogprintf.cc index e930372..e09f25d 100644 --- a/src/sys/lib/ogprintf.cc +++ b/src/sys/lib/ogprintf.cc @@ -24,6 +24,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. $Log$ + Revision 1.3 2004/05/19 17:09:50 flameshadow + chg: Undid previous renaming. This now restores me as the EOOUIAD. + Revision 1.2 2004/04/26 12:56:01 reddawg Made src/sys/sde Copy and Make the ogPixelFormat.cpp @@ -46,9 +49,14 @@ extern "C" { #include +#include + +spinLock_t printSpinLock = SPIN_LOCK_INITIALIZER; + int ogPrintf(char *s); - int screenRow = 0x0; - int screenCol = 0x1; + +int screenRow = 0x0; +int screenCol = 0x1; int ogPrintf(char *s) { int i = 0x0; @@ -56,6 +64,8 @@ ogSurface *screen = (ogDisplay_UbixOS *)systemVitals->screen; ogBitFont *font = (ogBitFont *)systemVitals->font; + spinLock(&printSpinLock); + while ('\0' != s[i]) { switch (s[i]) { case '\t': @@ -112,6 +122,7 @@ screen->GetMaxX() / 2, screen->GetMaxY()); #endif + spinUnlock(&printSpinLock); return 0; } // ogPrintf }