84 Commits

Author SHA1 Message Date
twinaphex
fa4a0de222 Cleanups in gfx_get_fps 2015-01-11 19:31:34 +01:00
twinaphex
7f30aee093 Start documenting gfx_common.c 2015-01-10 18:23:07 +01:00
twinaphex
1d45517d48 Declare variables at top 2015-01-09 01:23:58 +01:00
twinaphex
bcfc9d9077 Update headers 2015-01-07 18:06:50 +01:00
twinaphex
939b928adb Rename 'time' variables 2014-10-21 02:18:38 +02:00
Lioncash
495ed9de99 gfx_common: Make gfx_init_dwm a boolean function
Also fixes a bug where inited would be set to true, even if initialization had failed. I don't think it really matters in this case, however if this changes and is called twice for some reason in the future, it won't falsely assume it's already initialized.
2014-09-13 18:03:15 -04:00
twinaphex
fe510bca6f Indenting/C-style comments 2014-09-08 17:57:18 +02:00
Lioncash
ab1ab62a6d Fix some printf specifiers to the correct signed-ness 2014-09-05 19:43:32 -04:00
twinaphex
b04c253c06 (Win32) Fixup build 2014-08-03 03:30:59 +02:00
twinaphex
85688004ab (gfx) Cleanups 2014-08-03 02:16:02 +02:00
twinaphex
dd55520b59 Just expose all aspect ratios - some users want these weird ratios 2014-07-18 04:10:22 +02:00
twinaphex
ea88399281 (XDK D3D) Refactor initing code completely - make it more inline
with PC D3D driver
2014-03-07 05:31:24 +01:00
Themaister
107c07c05d Reinit driver on composition change. 2014-02-25 19:14:22 +01:00
twinaphex
a788009e7c How nice - geom->base_width and geom->base_height are const, so
we have to put them in local copies first
2014-02-13 15:12:31 +01:00
twinaphex
535f130891 Prevent division by zero in gfx_set_viewport 2014-02-13 15:10:01 +01:00
twinaphex
94d70b6aba (PSP) Hack - Get around FPU exception - division by zero 2014-02-13 11:38:41 +01:00
twinaphex
0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
twinaphex
38d785984f Add RETRO_ENVIRONMENT_GET_PERF_INTERFACE to libretro.h 2013-12-17 19:10:40 +01:00
Themaister
fc5ba8f79a Use configured aspect ratio to set windowed size.
Fixes some cases where core aspect is used and aspect_ratio_auto isn't set.
2013-10-26 18:31:48 +02:00
twinaphex
d2c87e3039 Convert most C99-style for loop initial declarations to C89-compliant
ones
2013-10-22 15:08:17 +02:00
Themaister
84c84814cf Fix possible crash with uninitialized buf_fps.
If fps count == 0, buf_fps would not be written to.
Also, make writing into buf_fps optional. Drop always_write variable as
it doesn't serve a purpose anymore.
2013-10-07 21:54:29 +02:00
twinaphex
c0c6ecc6cb Rewrite gfx_get_fps - now outputs proper string for FPS output 2013-10-07 20:17:07 +02:00
Themaister
b92deddd40 Shorten rotation names to avoid overflowing menu. 2013-04-21 18:25:30 +02:00
Themaister
4f7d3b5ea0 Add custom viewport + integer scale mode. 2013-04-20 12:48:33 +02:00
Themaister
be01a0ea59 Refactor aspect ratio handling.
Rework aspect ratio handling in RGUI.
Custom viewports work on PC. Ensure that aspect_ratio_idx persist
through reentrancy. Change ASPECT_RATIO_AUTO to ASPECT_RATIO_SQUARE to
better signal that it's the square pixel option.

Add ASPECT_RATIO_CONFIG as an option to use config file defined aspect
ratio.
2013-04-20 10:56:04 +02:00
Themaister
e389220df8 Refactor frame_counter.
Graphics drivers get the task of updating this.
If threaded driver is used, main thread cannot update the counter
due to race conditions.
2013-04-13 14:28:12 +02:00
Themaister
e0f9feb903 Fix 16:15 aspect lut. 2013-03-16 14:14:28 +01:00
Themaister
2681f14032 Add video_poke_interface_t. 2013-03-10 01:17:17 +01:00
twinaphex
66e7606b25 HAVE_RGUI and HAVE_RMENU are now mutually exclusive - no longer
have to be defined both for (say) the Android port
2013-03-09 17:42:19 +01:00
twinaphex
34515fd7f5 (RARCH_CONSOLE) Integrate rarch-console_video into gfx_common 2013-03-09 03:20:59 +01:00
Themaister
ddc51c3eba Ensure that FPS buffer is not left uninitialized. 2013-02-10 14:25:02 +01:00
Themaister
d8a4bb6d12 Fix initial FPS display. 2013-02-10 14:20:42 +01:00
Themaister
3b5eedeab5 Measure frame times at frame granularity. 2013-02-10 01:42:56 +01:00
Themaister
1df86a722a Rework FPS measurement. 2013-02-05 12:51:12 +01:00
Themaister
27d57b789a Add basic FPS measurement routines. 2013-02-04 21:46:56 +01:00
Themaister
61707d2783 Add integer scale options. 2013-01-29 19:28:33 +01:00
Themaister
0b4cf2d053 Update license headers to 2013. 2013-01-01 01:41:15 +01:00
twinaphex
799a9c35fb gfx_common.c - make gfx_get_fps into the main public function -
and remove the two public wrapper functions
2012-12-15 07:03:33 +01:00
twinaphex
dbb962e946 Streamline frame_count usage
(Android/Griffin) Fix build
2012-12-14 20:33:36 +01:00
Themaister
ed8433bd73 Add gfx_fps_title. 2012-11-15 17:30:31 +01:00
twinaphex
1d99cb62a2 (Xbox 1) Build fixes - don't compile in pragma comments for
XBOX
2012-11-15 14:24:56 +01:00
Themaister
0e729bcaa0 Style nits. 2012-11-15 09:40:31 +01:00
OV2
54d39dff74 win32: make d3d9 compile in msvc, add linker pragmas to source files 2012-11-14 21:07:06 +01:00
twinaphex
6bf7c3cb06 Update credits for collaborated files 2012-10-18 06:06:55 +02:00
Themaister
31b12d7d00 Refactor out common X11 code. 2012-09-26 15:52:25 +02:00
Themaister
4107218a5f Should fix build on OSX (*shrug*). 2012-09-24 10:04:15 +02:00
Themaister
3f613882a3 Avoid using IS_LINUX. Use plain __linux__. 2012-09-03 00:08:33 +02:00
Toad King
535f83be3e (GX) implement debug text 2012-08-27 16:09:53 -04:00
Themaister
e13b2e1cb5 Cleanup screensaver code. 2012-07-27 15:47:56 +02:00
Themaister
ff9820af68 Merge branch 'master' of github.com:Themaister/RetroArch
Conflicts:
	gfx/gfx_common.c
2012-07-27 15:37:10 +02:00