|
From: <sr...@us...> - 2003-10-26 09:13:48
|
Update of /cvsroot/aedgui/aedGUI/src In directory sc8-pr-cvs1:/tmp/cvs-serv20273/src Modified Files: aedWindow.cpp Log Message: Added proper surface locking. Index: aedWindow.cpp =================================================================== RCS file: /cvsroot/aedgui/aedGUI/src/aedWindow.cpp,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** aedWindow.cpp 25 Oct 2003 00:05:18 -0000 1.63 --- aedWindow.cpp 26 Oct 2003 09:12:08 -0000 1.64 *************** *** 110,114 **** --- 110,117 ---- aedColor temp(0, 0, 255, 255); + // we need to lock the surface before touching its pixels... + SLOCK(m_Surface); DrawRect(m_Surface, TitleBarX1, TitleBarY1, TitleBarX2, TitleBarY2, temp.getUint32(m_Surface)); + SUNLOCK(m_Surface); } |