mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Clean up unnecessary exports and add static keywords
This patch cleans up unnecessary exports from header files (there were only a few), as well as adds the static keyword to all symbols that aren't exported and are specific to a file. This helps the linker out in not doing any unnecessary work, speeding it up and avoiding silent symbol conflicts (otherwise two symbols with the same name (and type/signature in C++) would quietly resolve as okay by the linker).
This commit is contained in:
@@ -42,7 +42,7 @@ SDL_Surface* GetSubSurface( SDL_Surface* metaSurface, int x, int y, int width, i
|
||||
return preSurface;
|
||||
}
|
||||
|
||||
void DrawPixel( SDL_Surface *_surface, int x, int y, Uint32 pixel )
|
||||
static void DrawPixel( SDL_Surface *_surface, int x, int y, Uint32 pixel )
|
||||
{
|
||||
int bpp = _surface->format->BytesPerPixel;
|
||||
/* Here p is the address to the pixel we want to set */
|
||||
@@ -294,9 +294,9 @@ void BlitSurfaceTinted(
|
||||
}
|
||||
|
||||
|
||||
int oldscrollamount = 0;
|
||||
int scrollamount = 0;
|
||||
bool isscrolling = 0;
|
||||
static int oldscrollamount = 0;
|
||||
static int scrollamount = 0;
|
||||
static bool isscrolling = 0;
|
||||
|
||||
void UpdateFilter()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user