void
Menu::update()
{
- int menu_height = get_height();
+ int menu_height = (int) get_height();
if (menu_height > SCREEN_HEIGHT)
{ // Scrolling
int scroll_offset = (menu_height - SCREEN_HEIGHT) / 2 + 32;
if (!items[active_item]->help.empty())
{
- int text_width = default_font->get_text_width(items[active_item]->help);
- int text_height = default_font->get_text_height(items[active_item]->help);
+ int text_width = (int) default_font->get_text_width(items[active_item]->help);
+ int text_height = (int) default_font->get_text_height(items[active_item]->help);
Rect text_rect(pos_x - text_width/2 - 8,
SCREEN_HEIGHT - 48 - text_height/2 - 4,
elapsed_ticks += ticks - last_ticks;
last_ticks = ticks;
- Uint32 ticks_per_frame = TICKS_PER_FRAME * game_speed;
+ Uint32 ticks_per_frame = (Uint32) (TICKS_PER_FRAME * game_speed);
if (elapsed_ticks > ticks_per_frame*4) {
// when the game loads up or levels are switched the
#define SQSTD_STREAM_TYPE_TAG 0x80000000
struct SQStream {
+ virtual ~SQStream() {}
+
virtual SQInteger Read(void *buffer, SQInteger size) = 0;
virtual SQInteger Write(void *buffer, SQInteger size) = 0;
virtual SQInteger Flush() = 0;