Skip to content

Commit

Permalink
GaugeVario: render background without bitmap
Browse files Browse the repository at this point in the history
The background bitmap looks ugly and there isn't one for the "kt"
unit.  By drawing at runtime, we have more flexibility, and we can
easily adapt to other units.

This is a naive unoptimized version which does not try to
pre-calculate line positions.

Closes XCSoar#305
  • Loading branch information
MaxKellermann committed Jul 21, 2021
1 parent feecbfd commit 27dc875
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 528 deletions.
2 changes: 0 additions & 2 deletions Data/XCSoar.rc
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ BITMAP_ICON(IDB_POWER_PLANT, "map_power_plant")
BITMAP_ICON(IDB_POWER_PLANT_HD, "map_power_plant_160")
BITMAP_ICON(IDB_THERMAL_HOTSPOT, "map_thermal_hotspot")
BITMAP_ICON(IDB_THERMAL_HOTSPOT_HD, "map_thermal_hotspot_160")
BITMAP_BITMAP(IDB_VARIOSCALEA, "vario_scale_b")
BITMAP_BITMAP(IDB_VARIOSCALEC, "vario_scale_c")
#ifdef XCSOAR_TESTING
BITMAP_GRAPHIC(IDB_TITLE, "title_red_110")
BITMAP_GRAPHIC(IDB_TITLE_HD, "title_red_320")
Expand Down
Binary file removed Data/bitmaps/vario_scale_b.bmp
Binary file not shown.
Binary file removed Data/bitmaps/vario_scale_c.bmp
Binary file not shown.
165 changes: 0 additions & 165 deletions Data/icons/instrument_vario1.svg

This file was deleted.

180 changes: 0 additions & 180 deletions Data/icons/instrument_vario2.svg

This file was deleted.

Loading

0 comments on commit 27dc875

Please sign in to comment.