Skip to content

Commit aec042f

Browse files
committed
Fixed issue where the high precision canvas would be flipped along the (x,y) axis
1 parent 3c3ef9c commit aec042f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/graphics/ui.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ void render_and_update(FunctionState& state, ViewState& view_state, unsigned int
413413
ImGui::Image(
414414
(void*)(intptr_t)view_state.hp_texture,
415415
ImVec2((float)view_state.hp_height, (float)view_state.hp_width),
416-
ImVec2(0, 1),
417-
ImVec2(1, 0)
416+
ImVec2(0, 0),
417+
ImVec2(1, 1)
418418
);
419419

420420
if (ImGui::Button("Save to PNG")) {

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ void main_loop_step(AppContext* ctx) {
199199
init_imgui_loop();
200200

201201
if(ctx->view_state->wants_high_precision){
202-
const int hp_width = 500;//ctx->view_state->width;
203-
const int hp_height = 500;// ctx->view_state->height;
202+
const int hp_width = 100;//ctx->view_state->width;
203+
const int hp_height = 100;// ctx->view_state->height;
204204
ctx->view_state->hp_width = hp_width;
205205
ctx->view_state->hp_height = hp_height;
206206
ctx->view_state->hp_cpu_buffer.resize(hp_width * hp_height * 4);

0 commit comments

Comments
 (0)