コード例 #1
0
ファイル: UnitSymbol.hpp プロジェクト: nkgautam/XCSoar
  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();
 }