Skip to content

Commit a2686d6

Browse files
committed
Fix blendmode and remove ebook reader reference
1 parent bee3ebc commit a2686d6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

source/SDL_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ int SDL_HelperInit(void) {
3434
return -1;
3535

3636
RENDERER = SDL_CreateRenderer(WINDOW, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
37-
SDL_SetRenderDrawBlendMode(RENDERER, SDL_BLENDMODE_BLEND);
3837
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "2");
3938

4039
int flags = IMG_INIT_JPG | IMG_INIT_PNG;
@@ -74,6 +73,7 @@ void SDL_ClearScreen(SDL_Color colour) {
7473
void SDL_DrawRect(int x, int y, int w, int h, SDL_Color colour) {
7574
SDL_Rect rect;
7675
rect.x = x; rect.y = y; rect.w = w; rect.h = h;
76+
SDL_SetRenderDrawBlendMode(RENDERER, SDL_BLENDMODE_BLEND);
7777
SDL_SetRenderDrawColor(RENDERER, colour.r, colour.g, colour.b, colour.a);
7878
SDL_RenderFillRect(RENDERER, &rect);
7979
}

source/menus/menu_settings.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ static void Menu_DisplayAboutDialog(void) {
137137
SDL_GetTextDimensions(20, "Author: Joel16", &text2_width, NULL);
138138
SDL_GetTextDimensions(20, "Graphics: Preetisketch and CyanogenMod/LineageOS contributors", &text3_width, NULL);
139139
SDL_GetTextDimensions(20, "Touch screen: StevenMattera", &text4_width, NULL);
140-
SDL_GetTextDimensions(20, "E-Book Reader: rock88", &text5_width, NULL);
141140
SDL_GetTextDimensions(25, "OK", &confirm_width, &confirm_height);
142141

143142
SDL_QueryTexture(dialog, NULL, NULL, &dialog_width, &dialog_height);
@@ -149,7 +148,6 @@ static void Menu_DisplayAboutDialog(void) {
149148
SDL_DrawText(((1280 - (text2_width)) / 2), ((720 - (dialog_height)) / 2) + 100, 20, config.dark_theme? TEXT_MIN_COLOUR_DARK : TEXT_MIN_COLOUR_LIGHT, "Author: Joel16");
150149
SDL_DrawText(((1280 - (text3_width)) / 2), ((720 - (dialog_height)) / 2) + 130, 20, config.dark_theme? TEXT_MIN_COLOUR_DARK : TEXT_MIN_COLOUR_LIGHT, "Graphics: Preetisketch and CyanogenMod/LineageOS contributors");
151150
SDL_DrawText(((1280 - (text4_width)) / 2), ((720 - (dialog_height)) / 2) + 160, 20, config.dark_theme? TEXT_MIN_COLOUR_DARK : TEXT_MIN_COLOUR_LIGHT, "Touch screen: StevenMattera");
152-
SDL_DrawText(((1280 - (text5_width)) / 2), ((720 - (dialog_height)) / 2) + 190, 20, config.dark_theme? TEXT_MIN_COLOUR_DARK : TEXT_MIN_COLOUR_LIGHT, "E-Book Reader: rock88");
153151

154152
SDL_DrawRect((1030 - (confirm_width)) - 20, (((720 - (dialog_height)) / 2) + 245) - 20, confirm_width + 40, confirm_height + 40, config.dark_theme? SELECTOR_COLOUR_DARK : SELECTOR_COLOUR_LIGHT);
155153
SDL_DrawText(1030 - (confirm_width), ((720 - (dialog_height)) / 2) + 245, 25, config.dark_theme? TITLE_COLOUR_DARK : TITLE_COLOUR, "OK");

0 commit comments

Comments
 (0)