Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1647 from reicast/skmp/use-set-window-text
Browse files Browse the repository at this point in the history
Stats: Use os_SetWindowText instead of console print
  • Loading branch information
skmp authored Jun 18, 2019
2 parents ed99a4b + fbc2910 commit d2b4511
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
12 changes: 4 additions & 8 deletions core/hw/pvr/spg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,19 +180,15 @@ int spg_line_sched(int tag, int cycl, int jit)

full_rps=(spd_fps+fskip/ts);

#ifdef TARGET_PANDORA
printf("CPU: %4.2f V: %4.2f (%s%s%4.2f) R: %4.2f+%4.2f\n",
spd_cpu*100/200,spd_vbs,
mode,res,fullvbs,
spd_fps,fskip/ts);
#else
printf("%s/%c - %4.2f - %4.2f - V: %4.2f (%.2f, %s%s%4.2f) R: %4.2f+%4.2f VTX: %4.2f%c, MIPS: %.2f\n",
char temp[2048];
snprintf(temp, 2048, "%s/%c - %4.2f - %4.2f - V: %4.2f (%.2f, %s%s%4.2f) R: %4.2f+%4.2f VTX: %4.2f%c, MIPS: %.2f",
VER_SHORTNAME,'n',mspdf,spd_cpu*100/200,spd_vbs,
spd_vbs/full_rps,mode,res,fullvbs,
spd_fps,fskip/ts
, mv, mv_c, mips_counter/ 1024.0 / 1024.0);
mips_counter = 0;
#endif

os_SetWindowText(temp);

fskip=0;
last_fps=os_GetSeconds();
Expand Down
5 changes: 3 additions & 2 deletions core/linux-dist/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ void os_SetWindowText(const char * text)
{
#if defined(SUPPORT_X11)
x11_window_set_text(text);
#endif
#if defined(USE_SDL)
#elif defined(USE_SDL)
sdl_window_set_text(text);
#else
printf("Status: %s\n", text);
#endif
}

Expand Down

0 comments on commit d2b4511

Please sign in to comment.