Subversion Repositories eduke32

Rev

Rev 8478 | Rev 8490 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8478 Rev 8488
Line 636... Line 636...
636
    for (int i = 0; i<256; i++)
636
    for (int i = 0; i<256; i++)
637
    {
637
    {
638
        if (editorcolors[i] == 0)
638
        if (editorcolors[i] == 0)
639
        {
639
        {
640
            palette_t *edcol = (palette_t *)&vgapal16[4*i];
640
            palette_t *edcol = (palette_t *)&vgapal16[4*i];
641
            editorcolors[i] = getclosestcol_lim(edcol->b,edcol->g,edcol->r, 239);
641
            editorcolors[i] = paletteGetClosestColorUpToIndex(edcol->b,edcol->g,edcol->r, 239);
642
        }
642
        }
643
    }
643
    }
644
}
644
}
645
645
646
int app_main(int argc, char const * const * argv)
646
int app_main(int argc, char const * const * argv)