Skip to content

Commit

Permalink
Final changes before release
Browse files Browse the repository at this point in the history
  • Loading branch information
suyjuris committed May 20, 2019
1 parent 5aeced4 commit 5470f1a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions obst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5430,7 +5430,7 @@ void layout_frame_draw(Opengl_context* context, Array_t<Bdd_layout> layouts, Bdd

// @Speed This could be precomputed for each frame
float ymax = -1.f;
float ymax_x;
float ymax_x = 0.f; // init to keep compiler happy
s64 size0 = layouts[frame] .bdd_pos.size;
s64 size1 = layouts[frame+1].bdd_pos.size;
Pos a0 = edge0_data[edge0_data.size-1];
Expand All @@ -5457,7 +5457,7 @@ void layout_frame_draw(Opengl_context* context, Array_t<Bdd_layout> layouts, Bdd

if (y < ymax) continue;

float x0, x1;
float x0 = 0.f, x1 = 0.f; // init to keep compiler happy
bool flag0 = edge_get_x(edge0_data, y, &x0);
bool flag1 = edge_get_x(edge1_data, y, &x1);

Expand Down
2 changes: 1 addition & 1 deletion platform_emscripten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ void platform_ui_bddinfo_show(float x, float y, float pad) {
px = global_context.width / f - px;
right = true;
}
if (py + 200.f >= global_context.height / f) {
if (py + 300.f >= global_context.height / f) {
py = global_context.height / f - py;
bottom = false;
}
Expand Down
2 changes: 1 addition & 1 deletion platform_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2672,7 +2672,7 @@ void _platform_render(Platform_state* platform) {
set_disabled(Lui_context::SLOT_ENTRY_VARORDER, create_type_numbers);

// Scale the constants according to dpi
context->width_panel_left = context->scale(475);
context->width_panel_left = context->scale(500);
context->width_scrollbar = context->scale( 6);
context->width_resizer = context->scale( 8);
context->width_button_max = context->scale( 40);
Expand Down
2 changes: 1 addition & 1 deletion stox.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static u16 jup_sto_helper(Array_t<u8> str, Number_sci* into, u8 flags = 0) {
}
}
if (overflow) {
// Skip the rest of the factional part, loose the precision
// Skip the rest of the factional part, lose the precision
while (i < str.size and '0' <= str[i] and str[i] <= '9') ++i;
overflow = false;
}
Expand Down

0 comments on commit 5470f1a

Please sign in to comment.