X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fmain.h;h=7d586cec302c5657a53aa7788f70bf4257fe3cd5;hb=f5263ffb797938b07eec50ea1e7fb54a2a8d47c7;hp=bfd9fac554aa17b40c51de97c961864eb8d09629;hpb=aaa65d90ac812f924cbbc39bef7a5f8b6cad2da3;p=ipdf%2Fcode.git diff --git a/src/main.h b/src/main.h index bfd9fac..7d586ce 100644 --- a/src/main.h +++ b/src/main.h @@ -71,7 +71,7 @@ inline void MainLoop(Document & doc, const Rect & bounds = Rect(0,0,1,1), const scr.Clear(); view.Render(); scr.DebugFontPrintF("[CPU] Render took %lf ms (%lf FPS)\n", (SDL_GetPerformanceCounter() - init_time)* 1000.0/SDL_GetPerformanceFrequency(), SDL_GetPerformanceFrequency()/(SDL_GetPerformanceCounter() - init_time)); - scr.DebugFontPrintF("View bounds: (%f, %f) - (%f, %f)\n", view.GetBounds().x, view.GetBounds().y, view.GetBounds().w, view.GetBounds().h); + scr.DebugFontPrintF("View bounds: %s\n", view.GetBounds().Str().c_str()); if (view.UsingGPUTransform()) { scr.DebugFontPrint("Doing coordinate transform on the GPU.\n");