]> git.webhop.me Git - shellexec.git/commitdiff
- align to new neutrino.conf keywords
authorsvenhoefer <svenhoefer@svenhoefer.com>
Wed, 15 Mar 2017 20:57:15 +0000 (21:57 +0100)
committersvenhoefer <svenhoefer@svenhoefer.com>
Wed, 15 Mar 2017 20:57:15 +0000 (21:57 +0100)
shellexec.c

index 789b60f9bedbdecb0c75b67e203d722987c0eadc..d576cbcf7916be81968320ad47fa16a777c16c8d 100644 (file)
@@ -51,7 +51,7 @@ static char menucoltxt[][25]={
        "Head_Text",
        "Head"
 };
-static char spres[][5]={"","_crt","_lcd"};
+static char spres[][4]={"","crt","lcd"};
 
 #define LIST_STEP      10
 #define BUFSIZE        4095
@@ -1574,7 +1574,7 @@ int llev=m->headerlevels[m->act_header], lmen=m->act_header, lentr=m->lastheader
 
 int main (int argc, char **argv)
 {
-       int index=0,cindex=0,mainloop=1,dloop=1,tv, spr;
+       int index=0,cindex=0,mainloop=1,dloop=1,tv, spr, resolution;
        char tstr[BUFSIZE]={0}, *rptr;
        PLISTENTRY pl;
 
@@ -1600,19 +1600,21 @@ int main (int argc, char **argv)
        }
 
        spr=Read_Neutrino_Cfg("screen_preset")+1;
-       sprintf(trstr,"screen_StartX%s",spres[spr]);
+       resolution=Read_Neutrino_Cfg("osd_resolution");
+
+       sprintf(trstr,"screen_StartX_%s_%d", spres[spr], resolution);
        if((sx=Read_Neutrino_Cfg(trstr))<0)
                sx=100;
 
-       sprintf(trstr,"screen_EndX%s",spres[spr]);
+       sprintf(trstr,"screen_EndX_%s_%d", spres[spr], resolution);
        if((ex=Read_Neutrino_Cfg(trstr))<0)
                ex=1180;
 
-       sprintf(trstr,"screen_StartY%s",spres[spr]);
+       sprintf(trstr,"screen_StartY_%s_%d", spres[spr], resolution);
        if((sy=Read_Neutrino_Cfg(trstr))<0)
                sy=100;
 
-       sprintf(trstr,"screen_EndY%s",spres[spr]);
+       sprintf(trstr,"screen_EndY_%s_%d", spres[spr], resolution);
        if((ey=Read_Neutrino_Cfg(trstr))<0)
                ey=620;