Misc. clean up.

This commit is contained in:
Steve 2015-12-03 16:53:29 +00:00
parent 8a30dd36ae
commit 2bca049973
3 changed files with 3 additions and 4 deletions

View File

@ -69,10 +69,10 @@ dist:
mkdir $(PROG)-$(VERSION)
cp -r $(DIST_FILES) $(PROG)-$(VERSION)
git log --oneline --decorate >$(PROG)-$(VERSION)/CHANGELOG.raw
tar czf $(PROG)-$(VERSION).$(REVISION)-src.tar.gz $(PROG)-$(VERSION)
tar czf $(PROG)-$(VERSION)-$(REVISION).src.tar.gz $(PROG)-$(VERSION)
mkdir -p dist
$(RM) -rf dist/*
mv $(PROG)-$(VERSION).$(REVISION)-src.tar.gz dist
mv $(PROG)-$(VERSION)-$(REVISION).src.tar.gz dist
$(RM) -rf $(PROG)-$(VERSION)
# cleaning everything that can be automatically recreated with "make".

View File

@ -203,7 +203,7 @@ void saveScreenshot(void)
char filename[MAX_NAME_LENGTH];
SDL_Surface *sshot;
sprintf(filename, "/tmp/tbftss/%d.bmp", ++i);
sprintf(filename, "dev/screenshots/tmp/%d.bmp", ++i);
sshot = SDL_CreateRGBSurface(0, SCREEN_WIDTH, SCREEN_HEIGHT, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
SDL_RenderReadPixels(app.renderer, NULL, SDL_PIXELFORMAT_ARGB8888, sshot->pixels, sshot->pitch);

View File

@ -38,7 +38,6 @@ extern SDL_Texture *getTexture(char *filename);
extern void startSectionTransition(void);
extern void endSectionTransition(void);
extern void saveGame(void);
extern char *getChallengeDescription(Challenge *c);
extern void blit(SDL_Texture *t, int x, int y, int centered);
extern int collision(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2);
extern void updateStarSystemDescriptions(void);