diff --git a/libretro/core-mapper.c b/libretro/core-mapper.c index 3098fd0..91c82c3 100644 --- a/libretro/core-mapper.c +++ b/libretro/core-mapper.c @@ -41,6 +41,7 @@ char RPATH[512]; //EMU FLAGS int NPAGE=-1, KCOL=1, BKGCOLOR=0; int SHOWKEY=-1; +int VKBD_OPACITY=-1; #if defined(ANDROID) || defined(__ANDROID__) int MOUSE_EMULATED=1; @@ -257,7 +258,11 @@ void retro_virtualkb(void) SHOWKEY=-SHOWKEY; } else if(i==-5) - oldi=-1; + { + //VKbd opacitu on/off + VKBD_OPACITY=-VKBD_OPACITY; + oldi=-1; + } else if(i==-6) oldi=-1; else if(i==-7) diff --git a/libretro/graph.c b/libretro/graph.c index 51bfe79..7fd0c29 100755 --- a/libretro/graph.c +++ b/libretro/graph.c @@ -8,15 +8,22 @@ #include "libretro-core.h" extern int VIRTUAL_WIDTH; +extern int VKBD_OPACITY; unsigned Opacity(unsigned color1, unsigned color2){ unsigned r,g,b; - r=(R_RGB565(color1)/2)+(R_RGB565(color2)/2); - g=(G_RGB565(color1)/2)+(G_RGB565(color2)/2); - b=(B_RGB565(color1)/2)+(B_RGB565(color2)/2); - return RGB565(r,g,b); + if (VKBD_OPACITY==1){ + r=(R_RGB565(color1)/2)+(R_RGB565(color2)/2); + g=(G_RGB565(color1)/2)+(G_RGB565(color2)/2); + b=(B_RGB565(color1)/2)+(B_RGB565(color2)/2); + return RGB565(r,g,b); + } + else + { + return color2 + } } diff --git a/libretro/vkbd_def.h b/libretro/vkbd_def.h index a2934ae..00823a6 100644 --- a/libretro/vkbd_def.h +++ b/libretro/vkbd_def.h @@ -76,7 +76,7 @@ Mvk MVk[NPLGN*NLIGN*2]={ { " \x9c ", " \x9c ", " \x9c ", RETROK_UP}, { "Inv", "Inv", "Inv", RETROK_LSUPER}, - { "Spc", "Spc", "Spc", RETROK_SPACE}, // page 1, line 6 + { "OPC", "OPC", "OPC", -5}, // page 1, line 6 { "Spc", "Spc", "Spc", RETROK_SPACE}, { " + ", " \\ ", " \x1e ", RETROK_PLUS}, { " _ ", " - ", " \x1c ", RETROK_UNDERSCORE},