ui improvments

parent 25a97383
No preview for this file type
No preview for this file type
......@@ -6,7 +6,7 @@
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
#define MAX_ITERATIONS 250
#define MAX_ITERATIONS 500
typedef struct {
double real;
......
......@@ -48,11 +48,11 @@ render_ui(UI* ui, SDL_Renderer* renderer, ViewInfo view, float fps)
SDL_RenderDrawRect(renderer, &ui->fps_display);
if (ui->font) {
char buf[32];
snprintf(buf, sizeof(buf), "Zoom: %.2fx", view.zoom);
char buf[16];
snprintf(buf, sizeof(buf), "Zoom %.3gx", view.zoom);
render_text(renderer, ui->font, buf, &ui->zoom_display);
snprintf(buf, sizeof(buf), "Fps: %f", fps);
snprintf(buf, sizeof(buf), "Fps %.2f", fps);
render_text(renderer, ui->font, buf, &ui->fps_display);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment