Llevada tota la merda que he posat este mati
This commit is contained in:
@@ -141,8 +141,8 @@ void Screen::blit()
|
|||||||
void Screen::setVideoMode(int videoMode)
|
void Screen::setVideoMode(int videoMode)
|
||||||
{
|
{
|
||||||
#ifdef ARCADE
|
#ifdef ARCADE
|
||||||
// videoMode = SCREEN_VIDEO_MODE_WINDOW;
|
videoMode = SCREEN_VIDEO_MODE_WINDOW;
|
||||||
videoMode = SCREEN_VIDEO_MODE_FULLSCREEN;
|
//videoMode = SCREEN_VIDEO_MODE_FULLSCREEN;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Si está activo el modo ventana quita el borde
|
// Si está activo el modo ventana quita el borde
|
||||||
@@ -174,7 +174,7 @@ void Screen::setVideoMode(int videoMode)
|
|||||||
// Aplica el modo de video
|
// Aplica el modo de video
|
||||||
SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
|
SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
|
||||||
#ifdef ARCADE
|
#ifdef ARCADE
|
||||||
SDL_DisplayMode DM;
|
/*SDL_DisplayMode DM;
|
||||||
DM.w = 1024;
|
DM.w = 1024;
|
||||||
DM.h = 600;
|
DM.h = 600;
|
||||||
DM.refresh_rate = 60;
|
DM.refresh_rate = 60;
|
||||||
@@ -185,7 +185,7 @@ void Screen::setVideoMode(int videoMode)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::cout << "Changed windows display mode" << std::endl;
|
std::cout << "Changed windows display mode" << std::endl;
|
||||||
}
|
}*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Oculta el puntero
|
// Oculta el puntero
|
||||||
|
|||||||
@@ -211,13 +211,13 @@ bool Director::initSDL()
|
|||||||
// Muestra información de la pantalla
|
// Muestra información de la pantalla
|
||||||
if (options->console)
|
if (options->console)
|
||||||
{
|
{
|
||||||
std::cout << "\nDisplay modes list:" << std::endl;
|
/*std::cout << "\nDisplay modes list:" << std::endl;
|
||||||
for (int i = 0; i < SDL_GetNumDisplayModes(0); ++i)
|
for (int i = 0; i < SDL_GetNumDisplayModes(0); ++i)
|
||||||
{
|
{
|
||||||
SDL_DisplayMode DM;
|
SDL_DisplayMode DM;
|
||||||
SDL_GetDisplayMode(0,i,&DM);
|
SDL_GetDisplayMode(0,i,&DM);
|
||||||
std::cout << " - " + std::to_string(DM.w) + "x" + std::to_string(DM.h) + " @ " + std::to_string(DM.refresh_rate) + "Hz" << std::endl;
|
std::cout << " - " + std::to_string(DM.w) + "x" + std::to_string(DM.h) + " @ " + std::to_string(DM.refresh_rate) + "Hz" << std::endl;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
SDL_DisplayMode DM;
|
SDL_DisplayMode DM;
|
||||||
SDL_GetCurrentDisplayMode(0, &DM);
|
SDL_GetCurrentDisplayMode(0, &DM);
|
||||||
|
|||||||
Reference in New Issue
Block a user