mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
Add files via upload
Windows / Linux deps fix
This commit is contained in:
parent
4932b95777
commit
0ef6455c61
@ -22,6 +22,14 @@
|
|||||||
|
|
||||||
#include "video_crt_switch.h"
|
#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)
|
void switch_res(int width, int height, int f_restore)
|
||||||
{ /* Place holder for Linux function to swith resolutions */
|
{ /* Place holder for Linux function to swith resolutions */
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
* You should have received a copy of the GNU General Public License along with RetroArch.
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
void check_first_run();
|
||||||
void switch_res(int width, int height, int f_restore);
|
void switch_res(int width, int height, int f_restore);
|
||||||
void video_restore();
|
void video_restore();
|
@ -18,7 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <windows.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <gfx/video_driver.h>
|
#include <gfx/video_driver.h>
|
||||||
@ -31,7 +30,6 @@ static int ra_core_width;
|
|||||||
static int ra_core_height;
|
static int ra_core_height;
|
||||||
static int ra_tmp_width;
|
static int ra_tmp_width;
|
||||||
static int ra_tmp_height;
|
static int ra_tmp_height;
|
||||||
static int first_run;
|
|
||||||
static float fly_aspect;
|
static float fly_aspect;
|
||||||
|
|
||||||
void switch_res_core(int width, int height, float hz)
|
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)
|
void screen_setup_aspect(int width, int height)
|
||||||
{ /* create correct aspect to fit video if resolution does not exist */
|
{ /* create correct aspect to fit video if resolution does not exist */
|
||||||
|
@ -23,6 +23,17 @@
|
|||||||
|
|
||||||
#include "video_crt_switch.h"
|
#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)
|
void switch_res(int width, int height, int f_restore)
|
||||||
{ /* windows function to swith resolutions */
|
{ /* windows function to swith resolutions */
|
||||||
|
@ -17,5 +17,6 @@
|
|||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
void check_first_run();
|
||||||
void switch_res(int width, int height, int f_restore);
|
void switch_res(int width, int height, int f_restore);
|
||||||
void video_restore();
|
void video_restore();
|
Loading…
x
Reference in New Issue
Block a user