Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qtize rgbcolors. #1356

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ int parse_speed(const QString& str, double* val, double scale, const char* modul
/*
* Color helpers.
*/
int color_to_bbggrr(const char* cname);
int color_to_bbggrr(const QString& cname);

/*
* A constant for unknown altitude. It's tempting to just use zero
Expand Down
4 changes: 2 additions & 2 deletions ozi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ OziFormat::ozi_alloc_fsdata()
auto* fsdata = new ozi_fsdata;

/* Provide defaults via command line defaults */
fsdata->fgcolor = color_to_bbggrr(wptfgcolor);
fsdata->bgcolor = color_to_bbggrr(wptbgcolor);
fsdata->fgcolor = color_to_bbggrr(wptfgcolor.get());
fsdata->bgcolor = color_to_bbggrr(wptbgcolor.get());

return fsdata;
}
Expand Down
Loading