cleanup double semicolons
This commit is contained in:
parent
5eb515ab90
commit
91ea995209
@ -165,7 +165,7 @@ INTERNAL u32 reverse_bits(u32 v, u32 bit_count)
|
|||||||
b2 = (b2 & 0xAA) >> 1 | (b2 & 0x55) << 1;
|
b2 = (b2 & 0xAA) >> 1 | (b2 & 0x55) << 1;
|
||||||
b2 >>= 1;
|
b2 >>= 1;
|
||||||
|
|
||||||
return (b1 << 7) | b2;;
|
return (b1 << 7) | b2;
|
||||||
} else if (bit_count == 7) {
|
} else if (bit_count == 7) {
|
||||||
v = (v & 0xF0) >> 4 | (v & 0x0F) << 4;
|
v = (v & 0xF0) >> 4 | (v & 0x0F) << 4;
|
||||||
v = (v & 0xCC) >> 2 | (v & 0x33) << 2;
|
v = (v & 0xCC) >> 2 | (v & 0x33) << 2;
|
||||||
|
|||||||
@ -190,8 +190,9 @@ INTERNAL void game_update(void)
|
|||||||
e->valid = true;
|
e->valid = true;
|
||||||
e->rel_xform = XFORM_TRS(.t = pos, .r = r, .s = size);
|
e->rel_xform = XFORM_TRS(.t = pos, .r = r, .s = size);
|
||||||
|
|
||||||
e->sprite = sprite_tag_from_path(STR("res/graphics/tim.ase"));;
|
e->sprite = sprite_tag_from_path(STR("res/graphics/tim.ase"));
|
||||||
e->sprite_span_name = STR("idle.unarmed");
|
e->sprite_span_name = STR("idle.unarmed");
|
||||||
|
//e->sprite_span_name = STR("idle.two_handed");
|
||||||
|
|
||||||
struct v2 sprite_pos = V2(0, 0);
|
struct v2 sprite_pos = V2(0, 0);
|
||||||
f32 sprite_rot = 0;
|
f32 sprite_rot = 0;
|
||||||
|
|||||||
@ -1058,7 +1058,7 @@ INTERNAL void renderer_capture_image_for_profiler(f32 width, f32 height)
|
|||||||
struct temp_arena scratch = scratch_begin_no_conflict();
|
struct temp_arena scratch = scratch_begin_no_conflict();
|
||||||
|
|
||||||
u32 *source = res.pData;
|
u32 *source = res.pData;
|
||||||
u32 *dest = arena_push_array(scratch.arena, u32, final_width * final_height);;
|
u32 *dest = arena_push_array(scratch.arena, u32, final_width * final_height);
|
||||||
u32 pitch = res.RowPitch / 4;
|
u32 pitch = res.RowPitch / 4;
|
||||||
for (u32 y = 0; y < final_height; ++y) {
|
for (u32 y = 0; y < final_height; ++y) {
|
||||||
for (u32 x = 0; x < final_width; ++x) {
|
for (u32 x = 0; x < final_width; ++x) {
|
||||||
|
|||||||
@ -1914,7 +1914,7 @@ INTERNAL void win32_precise_sleep_timer(f64 seconds, HANDLE timer)
|
|||||||
/* TODO: Does the high frequency timer even require setting / scaling of
|
/* TODO: Does the high frequency timer even require setting / scaling of
|
||||||
* timeBeginPeriod/scheduler_period_ms? There isn't much documentation. */
|
* timeBeginPeriod/scheduler_period_ms? There isn't much documentation. */
|
||||||
|
|
||||||
i64 qpc_per_second = G.timer_frequency.QuadPart;;
|
i64 qpc_per_second = G.timer_frequency.QuadPart;
|
||||||
i32 scheduler_period_ms = G.scheduler_period_ms;
|
i32 scheduler_period_ms = G.scheduler_period_ms;
|
||||||
|
|
||||||
LARGE_INTEGER qpc;
|
LARGE_INTEGER qpc;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user