Commit Graph

35 Commits

Author SHA1 Message Date
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
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
twinaphex
63883a1131 Combine render_msg and render_msg_place with params argument 2013-03-11 20:05:05 +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
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
Themaister
ed8433bd73 Add gfx_fps_title. 2012-11-15 17:30:31 +01:00
Themaister
9f3af988f1 Only build D3D as C++ on Win32.
Fix a couple of headers with #ifdef __cplusplus.
2012-11-04 22:56:41 +01:00
Themaister
31b12d7d00 Refactor out common X11 code. 2012-09-26 15:52:25 +02:00
Themaister
52cde797c1 Should fix build on OSX 10.8. 2012-09-21 21:11:10 +02:00
Themaister
e13b2e1cb5 Cleanup screensaver code. 2012-07-27 15:47:56 +02:00
Saggi Mizrahi
de8c4b9a5f (Linux) Suspend screen saver when using SDL or XVIDEO
This doesn't add support for the opengl backend because I'm too tired to
figure out the context mess.

Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>
2012-07-25 02:04:33 -04:00
Saggi Mizrahi
5a6bec18b6 Remove trailing newlines from some files
Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>
2012-07-25 01:22:49 -04:00
Twinaphex
15e08db76e Use gfx_window_title for console ports as well - make gfx_get_fps
static
2012-07-15 18:40:41 +02:00
Twinaphex
ddc1e0fda7 Make it possible to reuse FPS logging in console ports 2012-07-15 18:37:59 +02:00
Themaister
ce740f8948 More fixups. 2012-04-21 23:31:57 +02:00
Themaister
9ab51ad23a SSNES => RetroArch. 2012-04-21 23:17:43 +02:00
Themaister
e3a71a8c5b Fixup headers. 2012-04-09 22:05:26 +02:00
Themaister
62c96ea937 Change license header. 2012-04-09 22:03:57 +02:00
Themaister
9698cd7dbd Change headers. 2012-04-09 22:03:57 +02:00
Themaister
b4248038fb Update license headers. 2012-01-08 01:12:05 +01:00
Themaister
d5fca50a2f Can build for C++. 2011-12-24 15:26:01 +01:00
Themaister
924848fdad Start working towards SDL 1.2/1.3 compat. 2011-09-13 14:06:49 +02:00
Themaister
bce679df78 Only use hack on X when in windowed mode. 2011-08-16 10:26:36 +02:00
Themaister
22e8c3d895 Should fix breakage of OGL on OSX. 2011-08-15 22:21:50 +02:00
Themaister
4496ed3c13 Should make sizes right after startup ... 2011-08-11 05:59:32 +02:00
Themaister
fc2a39cd58 More appropriate renaming. 2011-08-07 21:15:50 +02:00
Themaister
7425e1f879 Allow disabling composition in Win Vista/7Allow disabling composition in Win Vista/7. 2011-08-07 15:00:34 +02:00
Themaister
6a260a57dd Reset frame counter properly. 2011-08-06 03:28:07 +02:00
Themaister
12d21cf7a6 Make title handling more sane. 2011-03-26 18:34:58 +01:00