Skip to content

Commit

Permalink
[editor] fixed alignment of on-screen text (won't work for all screens)
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Feb 11, 2025
1 parent a8cc4bf commit 79b9a00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion runtime/Input/InputGamepad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ namespace spartan
Uint16 high_frequency_rumble = static_cast<uint16_t>(clamp(right_motor_speed, 0.0f, 1.0f) * 65535); // convert [0, 1] to [0, 65535]
Uint32 duration_ms = 0xFFFFFFFF;

if (SDL_RumbleGamepad(static_cast<SDL_Gamepad*>(gamepad.sdl_pointer), low_frequency_rumble, high_frequency_rumble, duration_ms) == -1)
if (!SDL_RumbleGamepad(static_cast<SDL_Gamepad*>(gamepad.sdl_pointer), low_frequency_rumble, high_frequency_rumble, duration_ms))
{
SP_LOG_ERROR("Failed to vibrate controller");
return false;
Expand Down
12 changes: 6 additions & 6 deletions runtime/Profiling/Profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ namespace spartan

snprintf(metrics_buffer, sizeof(metrics_buffer),
"FPS:\t\t%.1f\n"
"Time:\t%.2f ms\n"
"Time:\t\t%.2f ms\n"
"Frame:\t%llu\n\n"
"\t\t\t\tavg\t\t\tmin\t\t\tmax\t\tlast\n"
"Total:\t%05.2f\t\t%05.2f\t\t%05.2f\t\t%05.2f ms\n"
Expand All @@ -452,14 +452,14 @@ namespace spartan
"Max nits:\t\t%u\n"
"Render:\t\t%u x %u - %.0f%%\n"
"Output:\t\t%u x %u\n"
"Viewport:\t%u x %u\n\n"
"Viewport:\t\t%u x %u\n\n"
"Graphics API\n"
"Draw:\t\t\t\t\t\t\t\t\t\t%u\n"
"Draw:\t\t\t\t\t\t\t\t\t%u\n"
"Index buffer bindings:\t\t%u\n"
"Vertex buffer bindings:\t\t%u\n"
"Barriers:\t\t\t\t\t\t\t\t\t%u\n"
"Vertex buffer bindings:\t%u\n"
"Barriers:\t\t\t\t\t\t\t\t%u\n"
"Pipelines:\t\t\t\t\t\t\t\t%u\n"
"Descriptor set capacity:\t\t%u/%u",
"Descriptor set capacity:\t%u/%u",

m_fps,
time_frame_avg,
Expand Down

0 comments on commit 79b9a00

Please sign in to comment.