Files
@ r28815:5e58b8dec74d
Branch filter:
Location: cpp/openttd-patchpack/source/src/toolbar_gui.h - annotation
r28815:5e58b8dec74d
1.6 KiB
text/x-c
Codechange: Off-by-one in colour gradient initialisation.
Remap sprites start with a count byte followed by 256 entries, but
SetupColoursAndInitialWindow did not take account of this extra byte and
therefore started at palette index 0xC5 instead of 0xC6. This caused the
first colour of each gradient to be incorrect and all shades were actually
1 step lower in the gradient than indicated.
Remap sprites start with a count byte followed by 256 entries, but
SetupColoursAndInitialWindow did not take account of this extra byte and
therefore started at palette index 0xC5 instead of 0xC6. This caused the
first colour of each gradient to be incorrect and all shades were actually
1 step lower in the gradient than indicated.
r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r8723:866f284e9c98 r8723:866f284e9c98 r8723:866f284e9c98 r8723:866f284e9c98 r8723:866f284e9c98 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r26856:c988753485d9 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r9240:ae20a4f3f8ae r17869:b0e51d26f3f0 r19177:5af5e9926930 r28050:7462e0a9ad17 r8723:866f284e9c98 r21990:cedbcf015b65 r21990:cedbcf015b65 r11363:6906c490a00e | /*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file toolbar_gui.h Stuff related to the (main) toolbar. */
#ifndef TOOLBAR_GUI_H
#define TOOLBAR_GUI_H
enum MainToolbarHotkeys {
MTHK_PAUSE,
MTHK_FASTFORWARD,
MTHK_SETTINGS,
MTHK_SAVEGAME,
MTHK_LOADGAME,
MTHK_SMALLMAP,
MTHK_TOWNDIRECTORY,
MTHK_SUBSIDIES,
MTHK_STATIONS,
MTHK_FINANCES,
MTHK_COMPANIES,
MTHK_STORY,
MTHK_GOAL,
MTHK_GRAPHS,
MTHK_LEAGUE,
MTHK_INDUSTRIES,
MTHK_TRAIN_LIST,
MTHK_ROADVEH_LIST,
MTHK_SHIP_LIST,
MTHK_AIRCRAFT_LIST,
MTHK_ZOOM_IN,
MTHK_ZOOM_OUT,
MTHK_BUILD_RAIL,
MTHK_BUILD_ROAD,
MTHK_BUILD_TRAM,
MTHK_BUILD_DOCKS,
MTHK_BUILD_AIRPORT,
MTHK_BUILD_TREES,
MTHK_MUSIC,
MTHK_LANDINFO,
MTHK_SCRIPT_DEBUG,
MTHK_SMALL_SCREENSHOT,
MTHK_ZOOMEDIN_SCREENSHOT,
MTHK_DEFAULTZOOM_SCREENSHOT,
MTHK_GIANT_SCREENSHOT,
MTHK_CHEATS,
MTHK_TERRAFORM,
MTHK_EXTRA_VIEWPORT,
MTHK_CLIENT_LIST,
MTHK_SIGN_LIST
};
void AllocateToolbar();
void ToggleBoundingBoxes();
void ToggleDirtyBlocks();
void ToggleWidgetOutlines();
extern uint _toolbar_width;
#endif /* TOOLBAR_GUI_H */
|