]> git.sesse.net Git - alphaindex/commitdiff
Minor path fixes. master
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 15 Sep 2013 22:40:20 +0000 (00:40 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 15 Sep 2013 22:40:20 +0000 (00:40 +0200)
alphaindex.cpp

index cb5a7534085b2c34d0c5aac1a3482fb03c1b1a0a..0b0957d3b3e761ca81bf110080cb41335f6df87a 100644 (file)
@@ -99,7 +99,7 @@ int assign_to_cluster(const Pixel &pixel, const Pixel *center)
 
 int main(void)
 {
-       SDL_Surface *foo = IMG_Load("/home/sesse/clusterfuck/overlay-shadow.png");
+       SDL_Surface *foo = IMG_Load("overlay-shadow.png");
 
        vector<Pixel> pixels;
        for (int y = 0; y < foo->h; ++y) {
@@ -199,7 +199,7 @@ int main(void)
        write_png("indexed.png", out, foo->w, foo->h);
 
        // Write indexed stuff.
-       FILE *fp = fopen("/home/sesse/logo.indexed", "wb");
+       FILE *fp = fopen("logo.indexed", "wb");
        for (unsigned i = 0; i < NUM_CLUSTERS; ++i) {
                const Pixel& p = center[i];
                fputc(lrintf((p.r/p.a) * 255.0), fp);