diff --git a/Makefile b/Makefile index 9f10e29..033a785 100644 --- a/Makefile +++ b/Makefile @@ -497,8 +497,7 @@ ifeq ($(LOG_PERFORMANCE), 1) endif -DEFINES := -D__LIBRETRO__ $(PLATFORM_DEFINES) -DINLINE="inline" -DEFINES += -DHAVE_CONFIG_H +DEFINES := -D__LIBRETRO__ $(PLATFORM_DEFINES) -DINLINE="inline" -DHAVE_CONFIG_H CFLAGS += $(fpic) $(DEFINES) CFLAGS += -Wall diff --git a/libretro/graph.c b/libretro/graph.c index 5cfe819..5142871 100755 --- a/libretro/graph.c +++ b/libretro/graph.c @@ -92,16 +92,14 @@ unsigned short *mbuffer=(unsigned short *)buffer; } void DrawHlineBmp(char *buffer,int x,int y,int dx,int dy,unsigned color){ - - int i,j,idx; - + int i,idx; #if defined PITCH && PITCH == 4 -unsigned *mbuffer=(unsigned*)buffer; + unsigned *mbuffer=(unsigned*)buffer; #else -unsigned short *mbuffer=(unsigned short *)buffer; + unsigned short *mbuffer=(unsigned short *)buffer; #endif - - for(i=x;i= 0) ? 1 : -1; - sy = (dy >= 0) ? 1 : -1; + int dx = x2 - x1; + int dy = y2 - y1; + int sx = (dx >= 0) ? 1 : -1; + int sy = (dy >= 0) ? 1 : -1; if (dx==0) { if (dy>0) { @@ -168,8 +161,8 @@ unsigned short *mbuffer=(unsigned short *)buffer; } } - dx = sx * dx + 1; - dy = sy * dy + 1; + dx = sx * dx + 1; + dy = sy * dy + 1; pixx = 1; pixy = VIRTUAL_WIDTH; @@ -201,55 +194,28 @@ unsigned short *mbuffer=(unsigned short *)buffer; } } -/* -void DrawBox(char *buffer,box b,char t[],unsigned color){ - - - DrawBoxBmp(mbuffer,b.x,b.y,b.dx,b.dy,color); - textCpixel(mbuffer,b.x, 3*b.x + b.dx ,b.y+2,color,1,1,4,"%s",t); - -} - -void DrawBoxF(char *buffer,box b,char t[],unsigned color,unsigned border){ - - int ydec=b.y+(b.dy/2)-4; - - - if(ydeclibrary_name = "Atari800"; +#ifdef GIT_VERSION info->library_version = "3.1.0" GIT_VERSION; +#else + info->library_version = "3.1.0"; +#endif info->valid_extensions = "xfd|atr|cdm|cas|bin|a52|zip|atx|car|rom|com|xex"; info->need_fullpath = true; info->block_extract = false; @@ -673,8 +677,6 @@ void Retro_PollEvent(void); void retro_run(void) { - int x; - bool updated = false; if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)