From 5d2f7bbe2c27ce0947140bb21677fa43f2bd41a5 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Tue, 30 Jan 2007 20:49:22 +0000 Subject: [PATCH] Hopefully fixed building when fextracker is disabled. Originally committed to SVN as r911. --- aegisub/video_display_visual.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aegisub/video_display_visual.cpp b/aegisub/video_display_visual.cpp index afabd0afd..8fb3081ed 100644 --- a/aegisub/video_display_visual.cpp +++ b/aegisub/video_display_visual.cpp @@ -118,7 +118,9 @@ void VideoDisplayVisual::DrawOverlay() { // Draw the control points for FexTracker glDisable(GL_TEXTURE_2D); +#if USE_FEXTRACKER == 1 parent->tracker->Render(); +#endif // Draw lines if (mode != 0) { @@ -773,7 +775,11 @@ void VideoDisplayVisual::OnMouseEvent (wxMouseEvent &event) { SubtitlesGrid *grid = VideoContext::Get()->grid; bool hasOverlay = false; bool realTime = Options.AsBool(_T("Video Visual Realtime")); + + // Fextracker + #if USE_FEXTRACKER == 1 if (parent->tracker) parent->tracker->OnMouseEvent(event); + #endif // Text of current coords int vx = (sw * x + w/2) / w;