X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fmain.h;h=7d586cec302c5657a53aa7788f70bf4257fe3cd5;hp=bfd9fac554aa17b40c51de97c961864eb8d09629;hb=5e19040b00e135ead52e535165e079ee72059727;hpb=c9ce50e17952b0feeec68758444a50302a0aafba 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");