Browse Source

Fix a few minor FIXMEs in the code.

legacy
Sam Hocevar sam 14 years ago
parent
commit
f9ec350c1a
3 changed files with 6 additions and 4 deletions
  1. +3
    -2
      src/bitfield.h
  2. +2
    -1
      src/gtk/glmapview.cpp
  3. +1
    -1
      src/timer.cpp

+ 3
- 2
src/bitfield.h View File

@@ -11,6 +11,8 @@
#if !defined __DH_BITFIELD_H__
#define __DH_BITFIELD_H__

#include <stdint.h>

template class BitField<unsigned int COUNT>
{
public:
@@ -36,8 +38,7 @@ public:


private:
/* FIXME: use uint32_t here instead */
unsigned int bits[(COUNT + 31) / 32];
uint32_t bits[(COUNT + 31) / 32];
};

#endif // __DH_BITFIELD_H__


+ 2
- 1
src/gtk/glmapview.cpp View File

@@ -100,7 +100,6 @@ gboolean GlMapView::IdleTick()
return FALSE;
}

// FIXME: do not do anything if the previous tick was too recent?
ticking = TRUE;

if (mapviewer)
@@ -154,6 +153,8 @@ gboolean GlMapView::Draw(GdkEventExpose *e)
gtk_gl_area_swapbuffers(GTK_GL_AREA(glarea));
while (g_main_context_iteration(NULL, FALSE))
;

// FIXME: do some GTK stuff in here
Ticker::ClampFps(1000.0f / FPS);
}



+ 1
- 1
src/timer.cpp View File

@@ -67,7 +67,7 @@ private:
if (update)
cycles0 = cycles;
towait = deltams - ret;
if (towait > 5e-4f) // FIXME: use native Win32 stuff
if (towait > 5e-4f)
Sleep((int)(towait + 0.5f));
#else
/* The crappy SDL fallback */


Loading…
Cancel
Save