diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-24 01:49:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-24 19:12:36 +0200 |
| commit | 401da185ca664fc8d819fc842ffc08e14d4f6486 (patch) | |
| tree | 5c2ea2d1a7b1b537c04e7e9b3d32c8a44080f168 /src/wx/wx_util.h | |
| parent | dbcd1675732d59f6337f7f60d0a39aaa6a1aa3a6 (diff) | |
Restore time zone to Cinema and improve UI to use it (#2473).
Diffstat (limited to 'src/wx/wx_util.h')
| -rw-r--r-- | src/wx/wx_util.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wx/wx_util.h b/src/wx/wx_util.h index d8935daa1..89e3fe5a5 100644 --- a/src/wx/wx_util.h +++ b/src/wx/wx_util.h @@ -31,6 +31,7 @@ #include "wx_ptr.h" #include "lib/config.h" #include "lib/dcpomatic_time.h" +#include <dcp/utc_offset.h> #include <dcp/warnings.h> LIBDCP_DISABLE_WARNINGS #include <wx/gbsizer.h> @@ -131,17 +132,16 @@ extern double dpi_scale_factor (wxWindow* window); extern int search_ctrl_height (); extern void report_config_load_failure(wxWindow* parent, Config::LoadFailure what); + struct Offset { - Offset (wxString n, int h, int m) - : name (n) - , hour (h) - , minute (m) + Offset(wxString name_, dcp::UTCOffset offset_) + : name(name_) + , offset(offset_) {} wxString name; - int hour; - int minute; + dcp::UTCOffset offset; }; extern int get_offsets (std::vector<Offset>& offsets); |
