예제 #1
0
static void recv_cb(long offset)
{
  check_cancel_update();

  if(final_size > 0 && offset > final_size)
  {
    error("Transferred more than expected uncompressed size.", 1, 8, 0);
    cancel_update = true;
    return;
  }

  meter_interior(offset, final_size);
  update_screen();
}
예제 #2
0
파일: world.c 프로젝트: ruinistis/megazeux
static void meter_update_screen(int *curr, int target)
{
  (*curr)++;
  meter_interior(*curr, target);
  update_screen();
}