From a75a2e6650a8b839204f6fc72fbee169189361e9 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Tue, 31 Jan 2017 18:15:41 +0100 Subject: [PATCH] Remove dead code --- event.cpp | 33 --------------------------------- event.h | 1 - 2 files changed, 34 deletions(-) diff --git a/event.cpp b/event.cpp index 2859c9b..f89de6c 100644 --- a/event.cpp +++ b/event.cpp @@ -5270,39 +5270,6 @@ bool CEvent::TreatEventBase(const SDL_Event *event) return false; } -// (*) Sans cela, il existe un drôle de problème sur -// certains PC: la souris ne suis pas le mouvement -// réel effectué. -// Problème résolu par Denis ! - - -// Affiche un caractère de debug tout en haut. - -void CEvent::DebugDisplay(char m) -{ - char text[10]; - POINT pos; - RECT rect; - - m_debugPos.x += 8; - if ( m_debugPos.x > LXIMAGE-8 ) - { - m_debugPos.x = 0; - pos.x = 0; - pos.y = 0; - rect.left = pos.x; - rect.right = pos.x+LXIMAGE; - rect.top = pos.y; - rect.bottom = pos.y+DIMLITTLEY; - m_pPixmap->DrawPart(-1, CHBACK, pos, rect, 1); // dessine le fond - } - - text[0] = m; - text[1] = 0; - - DrawText(m_pPixmap, m_debugPos, text, FONTLITTLE); -} - // Passe les images d'introduction. void CEvent::IntroStep() diff --git a/event.h b/event.h index 1f5d133..81fc22c 100644 --- a/event.h +++ b/event.h @@ -105,7 +105,6 @@ public: bool IsShift(); void DemoStep(); - void DebugDisplay(char m); void IntroStep();