-Fixed RASPBERRY not being renamed to AMIBERRY on some places
-Updated the project to include a DEBUG pre-launch option, so we don't have to change the Makefile every time -Updated the Makefile to comment out DEBUG
This commit is contained in:
parent
ec6e9611ac
commit
9d8dc58b19
7 changed files with 43 additions and 46 deletions
2
Makefile
2
Makefile
|
@ -39,7 +39,7 @@ all: guisan $(PROG)
|
|||
guisan:
|
||||
$(MAKE) -C src/guisan
|
||||
|
||||
DEBUG=1
|
||||
#DEBUG=1
|
||||
|
||||
SDL_CFLAGS = `sdl2-config --cflags --libs`
|
||||
|
||||
|
|
|
@ -4,14 +4,12 @@
|
|||
<RemoteDebuggerCommand>projects/amiberry/amiberry-sdl2-dev</RemoteDebuggerCommand>
|
||||
<RemoteDebuggerWorkingDirectory>projects/amiberry</RemoteDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>LinuxDebugger</DebuggerFlavor>
|
||||
<PreLaunchCommand>
|
||||
</PreLaunchCommand>
|
||||
<PreLaunchCommand>export DEBUG=1</PreLaunchCommand>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<RemoteDebuggerCommand>projects/amiberry/amiberry-sdl2-dev</RemoteDebuggerCommand>
|
||||
<RemoteDebuggerWorkingDirectory>projects/amiberry</RemoteDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>LinuxDebugger</DebuggerFlavor>
|
||||
<PreLaunchCommand>
|
||||
</PreLaunchCommand>
|
||||
<PreLaunchCommand>export DEBUG=0</PreLaunchCommand>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -4408,7 +4408,7 @@ void default_prefs(struct uae_prefs *p, bool reset, int type)
|
|||
|
||||
p->gfx_framerate = 0;
|
||||
|
||||
#ifdef RASPBERRY
|
||||
#ifdef AMIBERRY
|
||||
p->gfx_size.width = 640;
|
||||
p->gfx_size.height = 256;
|
||||
p->gfx_resolution = RES_HIRES;
|
||||
|
|
|
@ -2205,7 +2205,7 @@ static void center_image(void)
|
|||
linetoscr_x_adjust_pixbytes = linetoscr_x_adjust_pixels * gfxvidinfo.drawbuffer.pixbytes;
|
||||
|
||||
thisframe_y_adjust_real = minfirstline;
|
||||
max_ypos_thisframe = (maxvpos_display - minfirstline);
|
||||
max_ypos_thisframe = maxvpos_display - minfirstline + 1;
|
||||
}
|
||||
|
||||
static void init_drawing_frame(void)
|
||||
|
|
|
@ -85,7 +85,7 @@ int fsdb_fill_file_attrs (a_inode *base, a_inode *aino)
|
|||
| (S_IWUSR & statbuf.st_mode ? 0 : A_FIBF_WRITE)
|
||||
| (S_IRUSR & statbuf.st_mode ? 0 : A_FIBF_READ));
|
||||
|
||||
#if defined(WIN32) || defined(ANDROIDSDL) || defined(RASPBERRY)
|
||||
#if defined(WIN32) || defined(ANDROIDSDL) || defined(AMIBERRY)
|
||||
// Always give execute & read permission
|
||||
// Temporary do this for raspberry...
|
||||
aino->amigaos_mode &= ~A_FIBF_EXECUTE;
|
||||
|
|
|
@ -226,7 +226,7 @@ int lockscr()
|
|||
{
|
||||
if(SDL_LockSurface(screen)== -1)
|
||||
return 0;
|
||||
//init_row_map();
|
||||
init_row_map();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -516,42 +516,41 @@ static int save_thumb(char* path)
|
|||
|
||||
bool vsync_switchmode(int hz)
|
||||
{
|
||||
// int changed_height = changed_prefs.gfx_size.height;
|
||||
//
|
||||
// if (hz >= 55)
|
||||
// hz = 60;
|
||||
// else
|
||||
// hz = 50;
|
||||
//
|
||||
// if(hz == 50 && currVSyncRate == 60)
|
||||
// {
|
||||
// // Switch from NTSC -> PAL
|
||||
// switch(changed_height) {
|
||||
// case 200: changed_height = 240; break;
|
||||
// case 216: changed_height = 262; break;
|
||||
// case 240: changed_height = 270; break;
|
||||
// case 256: changed_height = 270; break;
|
||||
// case 262: changed_height = 270; break;
|
||||
// case 270: changed_height = 270; break;
|
||||
// }
|
||||
// }
|
||||
// else if(hz == 60 && currVSyncRate == 50)
|
||||
// {
|
||||
// // Switch from PAL -> NTSC
|
||||
// switch(changed_height) {
|
||||
// case 200: changed_height = 200; break;
|
||||
// case 216: changed_height = 200; break;
|
||||
// case 240: changed_height = 200; break;
|
||||
// case 256: changed_height = 216; break;
|
||||
// case 262: changed_height = 216; break;
|
||||
// case 270: changed_height = 240; break;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if(changed_height == currprefs.gfx_size.height && hz == currprefs.chipset_refreshrate)
|
||||
// return true;
|
||||
//
|
||||
// changed_prefs.gfx_size.height = changed_height;
|
||||
int changed_height = changed_prefs.gfx_size.height;
|
||||
|
||||
if (hz >= 55)
|
||||
hz = 60;
|
||||
else
|
||||
hz = 50;
|
||||
|
||||
// if(hz == 50 && currVSyncRate == 60)
|
||||
// {
|
||||
// // Switch from NTSC -> PAL
|
||||
// switch(changed_height) {
|
||||
// case 200: changed_height = 240; break;
|
||||
// case 216: changed_height = 262; break;
|
||||
// case 240: changed_height = 270; break;
|
||||
// case 256: changed_height = 270; break;
|
||||
// case 262: changed_height = 270; break;
|
||||
// case 270: changed_height = 270; break;
|
||||
// }
|
||||
// }
|
||||
// else if(hz == 60 && currVSyncRate == 50)
|
||||
// {
|
||||
// // Switch from PAL -> NTSC
|
||||
// switch(changed_height) {
|
||||
// case 200: changed_height = 200; break;
|
||||
// case 216: changed_height = 200; break;
|
||||
// case 240: changed_height = 200; break;
|
||||
// case 256: changed_height = 216; break;
|
||||
// case 262: changed_height = 216; break;
|
||||
// case 270: changed_height = 240; break;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
|
||||
if (!picasso_on && !picasso_requested_on)
|
||||
changed_prefs.gfx_size.height = changed_height;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
#define NOBLITTER_BLIT 0
|
||||
#define NOBLITTER_ALL 0
|
||||
|
||||
#ifdef RASPBERRY
|
||||
#ifdef AMIBERRY
|
||||
static const int defaultHz = 50;
|
||||
#else
|
||||
static const int defaultHz = 60;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue