Cleaned up use of the DEBUG define:

- renamed the DEBUG define for debugging specific code. In the top of
  the relevant files there is an commented out define to activate
  debugging for that file.
- removed entire DEBUG sections where it is no longer relevant
- compile with DEBUG defined when building a debugging binary
Code that produces general warnings is kept in DEBUG blocks.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1378 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2004-06-13 22:32:41 +00:00
parent ecaa02203d
commit 54d0cde87e
+6 -4
View File
@@ -18,6 +18,8 @@
#include "gfxintrn.h"
//#define DEBUG_INTERSEC
static TIME_VALUE
frame_intersect (PINTERSECT_CONTROL pControl0, PRECT pr0,
PINTERSECT_CONTROL pControl1, PRECT pr1, TIME_VALUE t0,
@@ -331,14 +333,14 @@ DrawablesIntersect (PINTERSECT_CONTROL pControl0,
--time_x_0;
++time_x_1;
#ifdef DEBUG
#ifdef DEBUG_INTERSEC
fprintf (stderr, "FramePtr0<%d, %d> --> <%d, %d>\nFramePtr1<%d, %d> --> <%d, %d>\n",
GetFrameWidth (FramePtr0), GetFrameHeight (FramePtr0),
r0.corner.x, r0.corner.y,
GetFrameWidth (FramePtr1), GetFrameHeight (FramePtr1),
r1.corner.x, r1.corner.y);
fprintf (stderr, "time_x(%d, %d)-%d, time_y(%d, %d)-%d\n", time_x_0, time_x_1, dx, time_y_0, time_y_1, dy);
#endif /* DEBUG */
#endif /* DEBUG_INTERSEC */
if (dx == 0)
{
time_beg = time_y_0;
@@ -379,9 +381,9 @@ DrawablesIntersect (PINTERSECT_CONTROL pControl0,
time_y_1 = (SIZE)((time_end + fract - 1) / fract) - 1;
}
#ifdef DEBUG
#ifdef DEBUG_INTERSEC
fprintf (stderr, "start_time = %d, end_time = %d\n", time_y_0, time_y_1);
#endif /* DEBUG */
#endif /* DEBUG_INTERSEC */
if (time_y_0 <= time_y_1
&& (intersect_time = frame_intersect (
pControl0, &r0, pControl1, &r1,