mirror of
https://github.com/libretro/FBNeo.git
synced 2025-02-23 11:23:15 +00:00
new driver vs2019
This commit is contained in:
parent
7b5aa16fc8
commit
ba390a44b0
@ -526,10 +526,10 @@
|
||||
<ClCompile Include="..\..\src\burn\drv\pre90s\d_stuntair.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pre90s\d_tubep.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_eolith.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_eolith16.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_f-32.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_eolith16.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_f-32.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_galpani3.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_goori.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_goori.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_gstream.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_hyprduel.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_inufuku.cpp" />
|
||||
@ -537,7 +537,9 @@
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_kickgoal.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_legionna.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_limenko.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_pasha2.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_rabbit.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_shangha3.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_vamphalf.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_vegaeo.cpp" />
|
||||
<ClCompile Include="..\..\src\burn\drv\sega\d_sys24.cpp" />
|
||||
|
@ -4184,13 +4184,19 @@
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_eolith.cpp">
|
||||
<Filter>Burn\drv\pst90s</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_eolith16.cpp">
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_eolith16.cpp">
|
||||
<Filter>Burn\drv\pst90s</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_f-32.cpp">
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_f-32.cpp">
|
||||
<Filter>Burn\drv\pst90s</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_goori.cpp">
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_goori.cpp">
|
||||
<Filter>Burn\drv\pst90s</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_pasha2.cpp">
|
||||
<Filter>Burn\drv\pst90s</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\burn\drv\pst90s\d_shangha3.cpp">
|
||||
<Filter>Burn\drv\pst90s</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
|
@ -18,6 +18,11 @@ static int startGame = 0; // game at top of list as it is displayed on the menu
|
||||
static unsigned int gamesperscreen = 12;
|
||||
static unsigned int gamesperscreen_halfway = 6;
|
||||
static unsigned int gametoplay = 0;
|
||||
static unsigned int halfscreenheight = 0;
|
||||
static unsigned int halfscreenwidth = 0;
|
||||
static unsigned int thirdscreenheight =0;
|
||||
static unsigned int thirdscreenwidth =0;
|
||||
|
||||
|
||||
const int JOYSTICK_DEAD_ZONE = 8000;
|
||||
SDL_GameController* gGameController = NULL;
|
||||
@ -796,7 +801,12 @@ void gui_init()
|
||||
inrenderer(sdlRenderer);
|
||||
prepare_inline_font();
|
||||
|
||||
gamesperscreen = (nVidGuiHeight - 100) / 10;
|
||||
halfscreenheight = nVidGuiHeight / 2;
|
||||
halfscreenwidth = nVidGuiWidth / 2;
|
||||
thirdscreenheight =nVidGuiHeight/ 3;
|
||||
thirdscreenwidth = nVidGuiWidth / 2;
|
||||
|
||||
gamesperscreen = (thirdscreenheight * 2) / 11;
|
||||
gamesperscreen_halfway = gamesperscreen / 2;
|
||||
|
||||
// assume if the filter list exists we are returning from a launched game.
|
||||
@ -818,9 +828,11 @@ void gui_render()
|
||||
SDL_SetRenderDrawColor(sdlRenderer, 0x1a, 0x1e, 0x1d, SDL_ALPHA_OPAQUE);
|
||||
SDL_RenderClear(sdlRenderer);
|
||||
|
||||
SDL_Rect fillRect = { 0, 28 + (gamesperscreen_halfway * 10), nVidGuiWidth, 12};
|
||||
SDL_SetRenderDrawColor(sdlRenderer, 0x41, 0x1d, 0x62, 0xFF);
|
||||
SDL_RenderFillRect(sdlRenderer, &fillRect);
|
||||
// Game info box
|
||||
renderPanel(sdlRenderer, nVidGuiWidth/2,nVidGuiHeight/2, nVidGuiWidth/2,nVidGuiHeight/2, 0x00, 0x8f, 0x00);
|
||||
|
||||
// Selected game background
|
||||
renderPanel(sdlRenderer, 0, 28 + (gamesperscreen_halfway * 10), nVidGuiWidth, 12, 0x41, 0x1d, 0x62);
|
||||
|
||||
if (titleTexture != NULL) // JUST FOR TESTING!!
|
||||
{
|
||||
@ -844,10 +856,7 @@ void gui_render()
|
||||
gametoplay = filterGames[i];
|
||||
gameSelectedFromFilter = i;
|
||||
|
||||
fillRect = { 0, nVidGuiHeight - 70, nVidGuiWidth, nVidGuiHeight };
|
||||
SDL_SetRenderDrawColor(sdlRenderer, 0, 0, 0, 0xFF);
|
||||
SDL_RenderFillRect(sdlRenderer, &fillRect);
|
||||
|
||||
renderPanel(sdlRenderer, 0, thirdscreenheight*2, nVidGuiWidth, nVidGuiHeight, 0x41, 0x1d, 0xf2);
|
||||
incolor(info_color, /* unused */ 0);
|
||||
char infoLine[512];
|
||||
snprintf(infoLine, 512, "Year: %s - Manufacturer: %s - System: %s", BurnDrvGetTextA(DRV_DATE), BurnDrvGetTextA(DRV_MANUFACTURER), BurnDrvGetTextA(DRV_SYSTEM));
|
||||
@ -1048,7 +1057,7 @@ int gui_process()
|
||||
{
|
||||
int w, h;
|
||||
titleTexture = SDL_CreateTextureFromSurface(sdlRenderer, miscImage);
|
||||
SDL_QueryTexture(titleTexture, NULL, NULL, &w, &h);
|
||||
SDL_QueryTexture(titleTexture, NULL, NULL, &w, &h);
|
||||
title_texture_rect.x = 0; //the x coordinate
|
||||
title_texture_rect.y = 0; // the y coordinate
|
||||
title_texture_rect.w = w; //the width of the texture
|
||||
|
@ -33,3 +33,11 @@ float randomRange(float low, float high)
|
||||
|
||||
return (float)(random_gen() * range) + low;
|
||||
}
|
||||
|
||||
|
||||
void renderPanel(SDL_Renderer* sdlRenderer, int x, int y, int w, int h, UINT8 r, UINT8 g, UINT8 b )
|
||||
{
|
||||
SDL_Rect fillRect = { x, y, w, h };
|
||||
SDL_SetRenderDrawColor(sdlRenderer, r, g, b, 0);
|
||||
SDL_RenderFillRect(sdlRenderer, &fillRect);
|
||||
}
|
||||
|
@ -15,3 +15,4 @@ extern int color_result;
|
||||
void calcSelectedItemColor();
|
||||
float random_gen();
|
||||
float randomRange(float low, float high);
|
||||
void renderPanel(SDL_Renderer* sdlRenderer, int x, int y, int w, int h, UINT8 r, UINT8 g, UINT8 b );
|
||||
|
Loading…
x
Reference in New Issue
Block a user