1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

clean up the logo and make it scalable

- fixes #1776: graphical glitches on intro
- fixes #708: screen turns white when resizing intro
This commit is contained in:
Ted John
2016-05-13 21:36:07 +01:00
parent bf39225ca6
commit b58766aa3f
8 changed files with 152 additions and 145 deletions

View File

@@ -22,6 +22,7 @@
#include "../interface/widget.h"
#include "../interface/window.h"
#include "../interface/themes.h"
#include "../intro.h"
static rct_widget window_title_exit_widgets[] = {
{ WWT_IMGBTN, 2, 0, 39, 0, 63, SPR_MENU_EXIT, STR_EXIT },
@@ -89,7 +90,7 @@ void window_title_exit_open()
*/
static void window_title_exit_mouseup(rct_window *w, int widgetIndex)
{
if (RCT2_GLOBAL(RCT2_ADDRESS_RUN_INTRO_TICK_PART, uint8) != 0)
if (gIntroState != INTRO_STATE_NONE)
return;
if (widgetIndex == 0)

View File

@@ -17,6 +17,7 @@
#include "../addresses.h"
#include "../config.h"
#include "../game.h"
#include "../intro.h"
#include "../localisation/localisation.h"
#include "../interface/widget.h"
#include "../interface/window.h"
@@ -83,7 +84,7 @@ void window_title_options_open()
static void window_title_options_mouseup(rct_window *w, int widgetIndex)
{
if (RCT2_GLOBAL(RCT2_ADDRESS_RUN_INTRO_TICK_PART, uint8) != 0)
if (gIntroState != INTRO_STATE_NONE)
return;
if (widgetIndex == 0)