Subversion Repositories eduke32

Rev

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

Rev 8488 Rev 8490
Line 630... Line 630...
630
630
631
    // UNUSED?
631
    // UNUSED?
632
    vgapal16[41*4+0] = 0; //96;
632
    vgapal16[41*4+0] = 0; //96;
633
    vgapal16[41*4+1] = 0; //160;
633
    vgapal16[41*4+1] = 0; //160;
634
    vgapal16[41*4+2] = 252; //192;
634
    vgapal16[41*4+2] = 252; //192;
635
-
 
636
    for (int i = 0; i<256; i++)
-
 
637
    {
-
 
638
        if (editorcolors[i] == 0)
-
 
639
        {
-
 
640
            palette_t *edcol = (palette_t *)&vgapal16[4*i];
-
 
641
            editorcolors[i] = paletteGetClosestColorUpToIndex(edcol->b,edcol->g,edcol->r, 239);
-
 
642
        }
-
 
643
    }
-
 
644
}
635
}
645
636
646
int app_main(int argc, char const * const * argv)
637
int app_main(int argc, char const * const * argv)
647
{
638
{
648
#ifdef STARTUP_SETUP_WINDOW
639
#ifdef STARTUP_SETUP_WINDOW
Line 749... Line 740...
749
    artLoadFiles("tiles000.art", g_maxCacheSize);
740
    artLoadFiles("tiles000.art", g_maxCacheSize);
750
741
751
    Bstrcpy(kensig,"Uses BUILD technology by Ken Silverman");
742
    Bstrcpy(kensig,"Uses BUILD technology by Ken Silverman");
752
    initcrc();
743
    initcrc();
753
744
-
 
745
    InitCustomColors();
-
 
746
754
    const char *defsfile = G_DefFile();
747
    const char *defsfile = G_DefFile();
755
748
756
    if (testkopen("editor.def", 0))
749
    if (testkopen("editor.def", 0))
757
        G_AddDefModule("editor.def");
750
        G_AddDefModule("editor.def");
758
751
Line 764... Line 757...
764
    g_defModules.clear();
757
    g_defModules.clear();
765
758
766
    if (enginePostInit())
759
    if (enginePostInit())
767
        M32_FatalEngineError();
760
        M32_FatalEngineError();
768
761
769
    InitCustomColors();
-
 
770
-
 
771
    CallExtPostInit();
762
    CallExtPostInit();
772
763
773
#ifdef YAX_ENABLE
764
#ifdef YAX_ENABLE
774
    // init dummy texture for YAX
765
    // init dummy texture for YAX
775
    // must be after loadpics(), which inits BUILD's cache
766
    // must be after loadpics(), which inits BUILD's cache