Skip to content

Commit 618b8db

Browse files
committed
fix ui_display orientation for sokol_framebuffer.h
1 parent 39156c3 commit 618b8db

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

ui/ui_display.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ void ui_display_discard(ui_display_t* win) {
119119

120120
static ui_display_quad_t ui_display_uv_quad(bool origin_top_left, bool portrait) {
121121
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 };
122+
res.v[0] = { 0, 1 };
123+
res.v[1] = { 1, 1 };
124+
res.v[2] = { 1, 0 };
125+
res.v[3] = { 0, 0 };
126126
if (origin_top_left) {
127-
res.v[0].y = res.v[1].y = 1;
128-
res.v[2].y = res.v[3].y = 0;
127+
res.v[0].y = res.v[1].y = 0;
128+
res.v[2].y = res.v[3].y = 1;
129129
}
130130
if (portrait) {
131131
ImVec2 v3 = res.v[3];

0 commit comments

Comments
 (0)