Add files via upload

Windows / Linux deps fix
This commit is contained in:
alphanu1 2018-03-26 21:22:19 +01:00 committed by GitHub
parent 4932b95777
commit 0ef6455c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 12 deletions

View File

@ -22,6 +22,14 @@
#include "video_crt_switch.h"
void check_first_run()
{ /* ruin of first boot to get current display resolution */
if (first_run != 1)
{
}
first_run = 1;
}
void switch_res(int width, int height, int f_restore)
{ /* Place holder for Linux function to swith resolutions */

View File

@ -16,6 +16,6 @@
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
void check_first_run();
void switch_res(int width, int height, int f_restore);
void video_restore();

View File

@ -18,7 +18,6 @@
*/
#include <stddef.h>
#include <string.h>
#include <windows.h>
#include <stdlib.h>
#include <gfx/video_driver.h>
@ -31,7 +30,6 @@ static int ra_core_width;
static int ra_core_height;
static int ra_tmp_width;
static int ra_tmp_height;
static int first_run;
static float fly_aspect;
void switch_res_core(int width, int height, float hz)
@ -54,15 +52,6 @@ void switch_res_core(int width, int height, float hz)
}
}
void check_first_run()
{ /* ruin of first boot to get current display resolution */
if (first_run != 1)
{
orig_height = GetSystemMetrics(SM_CYSCREEN);
orig_width = GetSystemMetrics(SM_CXSCREEN);
}
first_run = 1;
}
void screen_setup_aspect(int width, int height)
{ /* create correct aspect to fit video if resolution does not exist */

View File

@ -23,6 +23,17 @@
#include "video_crt_switch.h"
static int first_run;
void check_first_run()
{ /* ruin of first boot to get current display resolution */
if (first_run != 1)
{
orig_height = GetSystemMetrics(SM_CYSCREEN);
orig_width = GetSystemMetrics(SM_CXSCREEN);
}
first_run = 1;
}
void switch_res(int width, int height, int f_restore)
{ /* windows function to swith resolutions */

View File

@ -17,5 +17,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
void check_first_run();
void switch_res(int width, int height, int f_restore);
void video_restore();