Code cleanup and improvements

This commit is contained in:
Dimitris Panokostas 2017-02-02 23:19:09 +01:00
parent ecd66f59c2
commit 54e28e4bf5
5 changed files with 13 additions and 3 deletions

View file

@ -34,6 +34,7 @@
</FileMasks>
<TransferNewFilesOnly>true</TransferNewFilesOnly>
<IncludeSubdirectories>true</IncludeSubdirectories>
<SelectedDirectories />
<DeleteDisappearedFiles>false</DeleteDisappearedFiles>
</MainSourceTransferCommand>
<AllowChangingHostForMainCommands>false</AllowChangingHostForMainCommands>
@ -148,7 +149,7 @@
<UserDefinedVariables />
<ImportedPropertySheets />
<CodeSense>
<Enabled>Unknown</Enabled>
<Enabled>False</Enabled>
<CFLAGS />
<CXXFLAGS />
<ExternalSourceFileList />

View file

@ -1866,6 +1866,10 @@ void init_row_map()
row_map[i] = row_tmp;
for (i = 0 , j = 0; i < gfxvidinfo.outheight; i++ , j += gfxvidinfo.rowbytes)
row_map[i] = gfxvidinfo.bufmem + j;
oldbufmem = gfxvidinfo.bufmem;
oldheight = gfxvidinfo.outheight;
oldpitch = gfxvidinfo.rowbytes;
}
static void init_aspect_maps()

View file

@ -9,6 +9,9 @@
* Copyright 1999 Sam Jordan
*/
#pragma once
#include "sysdeps.h"
STATIC_INLINE double to_single (uae_u32 value)
{
union

View file

@ -8,6 +8,8 @@
* Copyright 1996 Herman ten Brugge
*/
#pragma once
#include "sysdeps.h"
#ifndef HAVE_to_single
STATIC_INLINE double to_single (uae_u32 value)
{

View file

@ -640,9 +640,9 @@ void virtualdevice_init()
// In case of error, print the error code and close the application
void check_error_sdl(bool check, const char* message) {
if (check) {
std::cout << message << " " << SDL_GetError() << std::endl;
cout << message << " " << SDL_GetError() << endl;
SDL_Quit();
std::exit(-1);
exit(-1);
}
}