1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00
Commit Graph

882 Commits

Author SHA1 Message Date
Duncan
3e6ee0d3b1 Re-factor of gfx_fill_rect.
Moved cross_hatching code. Renamed some of the variables to make it easier to follow. Possible future change into big switch statement.
2014-06-17 16:29:07 +01:00
Duncan
28c2d6430d Re-factored part of gfx_fill_rect added zooming
Added notes for future work as well.
2014-06-17 12:39:56 +01:00
Duncan
aaaf06e94d Fixed bug in gfx_fill_rect
As expected _left was incorrect.
2014-06-17 12:20:34 +01:00
Duncan
f0fb16d1b2 Re-factored part of gfx_fill_rect
Removed references to global vars that are not required. Possible bug in line 416 will require looking at.
2014-06-17 12:15:58 +01:00
Duncan
4f77ba0698 Added extra zoom code
This is some sort of short cut code. I think some of the more common sprites are precomputed for zoomed images.
2014-06-16 16:09:29 +01:00
Duncan
f45ec1976a Corrected mistake with zoom_level
Has not been tested. Still requires looking at x, y initial values i think they might be >> as well.
2014-06-16 12:44:23 +01:00
Duncan
38df54167e Merge pull request #1 from IntelOrca/master
Test pull request
2014-06-16 09:40:52 +01:00
Duncan
66d185712e Fix gfx_clear bug not using zoom level
There is a strong possibility that i have implemented all zooming code incorrectly. This will require looking at.
2014-06-16 09:25:42 +01:00
Ted John
aecfc6ce5f Merge pull request #182 from duncanspumpkin/gfx_string
More gfx_string work
2014-06-15 12:19:36 +01:00
Duncan Frost
d0fa292129 Now using sprite refs 2014-06-15 10:45:22 +01:00
Duncan Frost
e931da1ca9 Simplified buffer interaction 2014-06-15 10:31:10 +01:00
Duncan Frost
ce0321aba7 Cleaned up gfx notes 2014-06-15 10:22:39 +01:00
Duncan Frost
7128ca9f5d Fix small bug with adjust palette 2014-06-15 10:15:23 +01:00
Duncan Frost
61a30b16fb Tidied up gfx_string. Deleted control char enum. Now uses string_ids enum to prevent multiple defs. 2014-06-15 10:09:28 +01:00
Ted John
dbe0fc2a16 Merge pull request #181 from duncanspumpkin/master
Added text info to cheat tab
2014-06-14 15:03:39 +01:00
Ted John
935de69b19 Merge pull request #180 from duncanspumpkin/gfx_string
Gfx string
2014-06-14 15:03:16 +01:00
Duncan Frost
80cdcb6fbf Added text info to cheat tab 2014-06-14 10:19:42 +01:00
Duncan Frost
b0475b3f15 Labeled global vars, removed obselete comments and changed to local text_palette. 2014-06-14 09:46:04 +01:00
Duncan Frost
80b8ef29bd Fix merge fail 2014-06-14 09:05:33 +01:00
Duncan Frost
331159c9e6 Wrap string refactored to match other width functions. Error clean up. 2014-06-14 09:01:59 +01:00
Duncan
cbd97facfd Added Char_control_code enum. Refactor of draw string 2014-06-14 08:34:58 +01:00
Duncan
a39485fcc6 Added notes for what unknown functions do. 2014-06-14 08:33:43 +01:00
Duncan
0afec9c3e8 Cleaned up clip_string and string_width
Both functions are very similar. They now have the same bugs fixed.
2014-06-14 08:33:42 +01:00
Duncan
db2f855579 Small bug fix in char width. Switched to C99 inits
4th character type has to have the width increased from the g1 elements width rather than decreased.
2014-06-14 08:32:47 +01:00
Duncan Frost
960307e3bc Fixed bug in create window due to uninitialised data. Finished load_character_width function 2014-06-14 08:32:47 +01:00
Duncan Frost
ba1c414165 Started decompiling character width loading function 2014-06-14 08:32:46 +01:00
Ted John
486d25cb90 Merge pull request #178 from JeroenSack/master
Implement widget_scroll_get_part
2014-06-14 01:16:12 +01:00
Jeroen Sack
91cae10a1f Revert indention
Don't know what happened here, but was not meant to happen.
2014-06-13 22:57:51 +02:00
Jeroen Sack
aa5209d9f0 Remove commented function
Remove a forgotten commented function
2014-06-13 22:47:14 +02:00
Jeroen Sack
a91c5532d1 Port function widget_scroll_get_part
replace 6E9F92 with widget_scroll_get_part
2014-06-13 22:40:15 +02:00
Ted John
b2dcea071c Merge pull request #177 from anyc/testing
fix GCC compilation
2014-06-13 18:44:42 +01:00
anyc
2e7261e9cf fix GCC compilation 2014-06-13 16:43:52 +02:00
Ted John
3821b26214 Merge pull request #176 from DutchRPW/browse-window-fix
Fix #133
2014-06-13 15:10:02 +01:00
Duncan
2e0f34222c Added Char_control_code enum. Refactor of draw string 2014-06-13 15:02:34 +01:00
Patrick Wijnings
4485e3dd72 osinterface: use FAILED macro to check for success of CoInitializeEx / SHGetMalloc. 2014-06-13 14:44:40 +02:00
Duncan
92d8e0cf34 Added notes for what unknown functions do. 2014-06-13 13:04:09 +01:00
Duncan
a73ed7ce94 Cleaned up clip_string and string_width
Both functions are very similar. They now have the same bugs fixed.
2014-06-13 12:57:05 +01:00
Duncan
04facd2fcd Small bug fix in char width. Switched to C99 inits
4th character type has to have the width increased from the g1 elements width rather than decreased.
2014-06-13 12:49:35 +01:00
IntelOrca
521e868b6f Merge branch 'ZedThree-gfx_strings' 2014-06-13 01:26:54 +01:00
IntelOrca
521dadfd7b Merge branch 'gfx_strings' of https://github.com/ZedThree/OpenRCT2 into ZedThree-gfx_strings 2014-06-13 01:26:34 +01:00
Duncan Frost
583d769ad1 Fixed bug in create window due to uninitialised data. Finished load_character_width function 2014-06-13 00:02:52 +01:00
Duncan Frost
0e3702f463 Started decompiling character width loading function 2014-06-12 21:49:59 +01:00
ZedThree
08b69b6361 Bug fix: off-by-one 2014-06-12 21:19:13 +02:00
Ted John
e335166921 Merge pull request #173 from duncanspumpkin/draw_string_bug_fixes
Fix a few bugs to do with the buffer being incremented at start of loop
2014-06-11 22:32:13 +01:00
Duncan Frost
6f65ba5714 Fix a few bugs to do with the buffer being incremented at start of loop 2014-06-11 19:08:00 +01:00
ZedThree
121990d68f Replace unneeded addresses with variables 2014-06-11 19:50:31 +02:00
ZedThree
d2c80229c1 Fixes #171 2014-06-11 19:50:30 +02:00
ZedThree
74f5fbc31a Bug fix for strings with non-char sprites 2014-06-11 19:50:30 +02:00
ZedThree
0f0351d341 Byte width bug fixes 2014-06-11 19:50:29 +02:00
ZedThree
fcc5e29b76 Add comments, removed unused vars 2014-06-11 19:47:49 +02:00