-
-
Notifications
You must be signed in to change notification settings - Fork 338
ui: Add render scale and backend to compat reports #2319
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
base: master
Are you sure you want to change the base?
ui: Add render scale and backend to compat reports #2319
Conversation
ui/xui/compat.cc
Outdated
@@ -91,6 +87,23 @@ void CompatibilityReporter::Draw() | |||
description[0] = '\x00'; | |||
report.compat_comments = description; | |||
|
|||
char render_scale_buffer[8]; | |||
snprintf(render_scale_buffer, sizeof(render_scale_buffer), "%dx", | |||
nv2a_get_surface_scale_factor() - 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe copied from other UI code? The -1
elsewhere is for translating to lookup table, but here this will result in 0x
being printed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, copied from UI code. Fixed.
ui/xui/reporting.hh
Outdated
@@ -41,15 +41,17 @@ public: | |||
std::string compat_rating; | |||
std::string compat_comments; | |||
std::string xbe_headers; | |||
std::string rendering_scale; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unusual indentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, tabs once again.
ui/xui/reporting.cc
Outdated
@@ -57,6 +49,8 @@ const std::string &CompatibilityReport::GetSerializedReport() | |||
{"compat_rating", compat_rating}, | |||
{"compat_comments", compat_comments}, | |||
{"xbe_headers", xbe_headers}, | |||
{"rendering_scale", rendering_scale}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Indentation doesn't match surrounding
- I'll have to update the backend to support saving these fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, weird. GitHub on my end was showing a 1 space tab. Locally I usually use tab=4 spaces. Yeah, we'll clang-format and convert the tabs to spaces at some point.
8efaa98
to
bf0b93f
Compare
No description provided.