Oh noez, I'v emessed up color channels in the keyboard theme! It shall be yellow, yellow I tell you!
This commit is contained in:
@@ -1 +1 @@
|
|||||||
commandergenius
|
ballfield
|
||||||
@@ -334,7 +334,7 @@ static void drawTouchscreenKeyboardSun()
|
|||||||
NULL, &buttonsDraw[i], 255, 255, 255, transparency );
|
NULL, &buttonsDraw[i], 255, 255, 255, transparency );
|
||||||
|
|
||||||
drawCharTexFlip( &buttonImages[ pressed ? (i * 2 + 1) : (i * 2) ],
|
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] &&
|
if( i < AutoFireButtonsNum && ! ButtonAutoFire[i] &&
|
||||||
( ButtonAutoFireX[i*2] > 0 || ButtonAutoFireX[i*2+1] > 0 ) )
|
( 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]);
|
shrinkButtonRect(buttons[i], &buttonsDraw[i]);
|
||||||
if( i < AutoFireButtonsNum )
|
if( i < AutoFireButtonsNum )
|
||||||
{
|
{
|
||||||
buttonsAutoFireRect[i].w = buttons[i].w * 2;
|
buttonsAutoFireRect[i].w = buttons[i].w * 3 / 2;
|
||||||
buttonsAutoFireRect[i].h = buttons[i].h * 2;
|
buttonsAutoFireRect[i].h = buttons[i].h * 3 / 2;
|
||||||
buttonsAutoFireRect[i].x = buttons[i].x - buttons[i].w / 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].y = buttons[i].y + buttons[i].h / 2 - buttonsAutoFireRect[i].h / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -49,7 +49,7 @@ main(int argc, char *argv[])
|
|||||||
if( perPixeAlpha )
|
if( perPixeAlpha )
|
||||||
format1 = SDL_CreateRGBSurface( SDL_SWSURFACE|SDL_SRCALPHA, 1, 1, 16, 0xF000, 0xF00, 0xF0, 0xF );
|
format1 = SDL_CreateRGBSurface( SDL_SWSURFACE|SDL_SRCALPHA, 1, 1, 16, 0xF000, 0xF00, 0xF0, 0xF );
|
||||||
if( target32bpp )
|
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)
|
if(!format1)
|
||||||
return 1;
|
return 1;
|
||||||
SDL_Surface * dst = SDL_ConvertSurface(src, format1->format, SDL_SWSURFACE|SDL_SRCALPHA);
|
SDL_Surface * dst = SDL_ConvertSurface(src, format1->format, SDL_SWSURFACE|SDL_SRCALPHA);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user