예제 #1
0
  void Reset() {
#if defined(USE_GDI) || defined(ENABLE_OPENGL)
    bitmap.Reset();
#else
    buffer.Free();
#endif
  }
예제 #2
0
  void UpdatePreview(Path path) {
    preview_widget->SetBitmap(nullptr);

    preview_bitmap.Reset();
    try {
      if (!preview_bitmap.LoadFile(path))
        return;
    } catch (const std::exception &e) {
      return;
    }

    preview_widget->SetBitmap(preview_bitmap);
  }
예제 #3
0
파일: Icon.hpp 프로젝트: DRIZO/xcsoar
 void Reset() {
   bitmap.Reset();
 }