We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39156c3 commit 618b8dbCopy full SHA for 618b8db
1 file changed
ui/ui_display.h
@@ -119,13 +119,13 @@ void ui_display_discard(ui_display_t* win) {
119
120
static ui_display_quad_t ui_display_uv_quad(bool origin_top_left, bool portrait) {
121
ui_display_quad_t res = {};
122
- res.v[0] = { 0, 0 };
123
- res.v[1] = { 1, 0 };
124
- res.v[2] = { 1, 1 };
125
- res.v[3] = { 0, 1 };
+ res.v[0] = { 0, 1 };
+ res.v[1] = { 1, 1 };
+ res.v[2] = { 1, 0 };
+ res.v[3] = { 0, 0 };
126
if (origin_top_left) {
127
- res.v[0].y = res.v[1].y = 1;
128
- res.v[2].y = res.v[3].y = 0;
+ res.v[0].y = res.v[1].y = 0;
+ res.v[2].y = res.v[3].y = 1;
129
}
130
if (portrait) {
131
ImVec2 v3 = res.v[3];
0 commit comments