Skip to content
Browse files

Oh noez, I'v emessed up color channels in the keyboard theme! It shal…

…l be yellow, yellow I tell you!
  • Loading branch information...
1 parent aa510cd commit f4ab2a67370db496e3a09a56abd9cf42859d1f33 @pelya committed Jun 8, 2012
View
2 project/jni/application/src
View
10 project/jni/sdl-1.3/src/video/android/SDL_touchscreenkeyboard.c
@@ -334,7 +334,7 @@ static void drawTouchscreenKeyboardSun()
NULL, &buttonsDraw[i], 255, 255, 255, transparency );
drawCharTexFlip( &buttonImages[ pressed ? (i * 2 + 1) : (i * 2) ],
- NULL, &buttonsDraw[i], (i >= 2 && pressed), (i >= 2 && pressed), 255, 255, 255, transparency );
+ NULL, &buttonsDraw[i], (i >= 2 && pressed), 0, 255, 255, 255, transparency );
if( i < AutoFireButtonsNum && ! ButtonAutoFire[i] &&
( ButtonAutoFireX[i*2] > 0 || ButtonAutoFireX[i*2+1] > 0 ) )
@@ -939,10 +939,10 @@ int SDL_ANDROID_SetScreenKeyboardButtonPos(int buttonId, SDL_Rect * pos)
shrinkButtonRect(buttons[i], &buttonsDraw[i]);
if( i < AutoFireButtonsNum )
{
- buttonsAutoFireRect[i].w = buttons[i].w * 2;
- buttonsAutoFireRect[i].h = buttons[i].h * 2;
- buttonsAutoFireRect[i].x = buttons[i].x - buttons[i].w / 2;
- buttonsAutoFireRect[i].y = buttons[i].y - buttons[i].h / 2;
+ buttonsAutoFireRect[i].w = buttons[i].w * 3 / 2;
+ buttonsAutoFireRect[i].h = buttons[i].h * 3 / 2;
+ buttonsAutoFireRect[i].x = buttons[i].x + buttons[i].w / 2 - buttonsAutoFireRect[i].w / 2;
+ buttonsAutoFireRect[i].y = buttons[i].y + buttons[i].h / 2 - buttonsAutoFireRect[i].h / 2;
}
}
return 1;
View
BIN project/res/raw/simpletheme.raw
Binary file not shown.
View
BIN project/res/raw/sun.raw
Binary file not shown.
View
BIN project/res/raw/ultimatedroid.raw
Binary file not shown.
View
BIN project/themes/converter/converter
Binary file not shown.
View
2 project/themes/converter/converter.cpp
@@ -49,7 +49,7 @@ main(int argc, char *argv[])
if( perPixeAlpha )
format1 = SDL_CreateRGBSurface( SDL_SWSURFACE|SDL_SRCALPHA, 1, 1, 16, 0xF000, 0xF00, 0xF0, 0xF );
if( target32bpp )
- format1 = SDL_CreateRGBSurface( SDL_SWSURFACE|SDL_SRCALPHA, 1, 1, 32, 0xFF000000, 0xFF0000, 0xFF00, 0xFF );
+ format1 = SDL_CreateRGBSurface( SDL_SWSURFACE|SDL_SRCALPHA, 1, 1, 32, 0xFF, 0xFF00, 0xFF0000, 0xFF000000 );
if(!format1)
return 1;
SDL_Surface * dst = SDL_ConvertSurface(src, format1->format, SDL_SWSURFACE|SDL_SRCALPHA);
View
53,556 project/themes/touchscreentheme.h
26,995 additions, 26,561 deletions not shown because the diff is too large. Please use a local Git client to view these changes.

0 comments on commit f4ab2a6

Please sign in to comment.
Something went wrong with that request. Please try again.