truebrain
ee94a7512e
(svn r23727) -Codechange: speedup the 32bpp palette animation by reducing the amount of compares. This is possible because the function is called with only 2 possible conditions: from 0 to 255 (full palette update, 8bpp only) or from PALETTE_ANIM_START to 255
2012-01-03 09:46:37 +00:00
truebrain
8dbb654e39
(svn r23727) -Codechange: speedup the 32bpp palette animation by reducing the amount of compares. This is possible because the function is called with only 2 possible conditions: from 0 to 255 (full palette update, 8bpp only) or from PALETTE_ANIM_START to 255
2012-01-03 09:46:37 +00:00
peter1138
570d2dcbed
(svn r23726) -Fix (r23670): Remove debugging code added accidentally
2012-01-03 02:38:35 +00:00
peter1138
4da7f2b723
(svn r23726) -Fix (r23670): Remove debugging code added accidentally
2012-01-03 02:38:35 +00:00
michi_cc
c54c4398b1
(svn r23674) -Fix (r23670): Don't read invalid memory in the 32bpp simple blitter.
2011-12-26 14:53:19 +00:00
michi_cc
47171c7829
(svn r23674) -Fix (r23670): Don't read invalid memory in the 32bpp simple blitter.
2011-12-26 14:53:19 +00:00
peter1138
42347d3c45
(svn r23670) -Feature: Add ability to adjust brightness of colour after remapping for 32bpp sprites
2011-12-24 23:33:45 +00:00
peter1138
3ef77e55c5
(svn r23670) -Feature: Add ability to adjust brightness of colour after remapping for 32bpp sprites
2011-12-24 23:33:45 +00:00
smatz
36747f96a6
(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls
2011-12-18 17:17:18 +00:00
smatz
33d283fdb1
(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls
2011-12-18 17:17:18 +00:00
rubidium
e6c46d4cf4
(svn r23448) -Fix: keep a local copy of the palette in the 32bpp animated blitter so changes of the palette data during the game don't influence drawing (with SDL)
2011-12-08 19:37:33 +00:00
rubidium
61625e53c9
(svn r23448) -Fix: keep a local copy of the palette in the 32bpp animated blitter so changes of the palette data during the game don't influence drawing (with SDL)
2011-12-08 19:37:33 +00:00
rubidium
a531ec1899
(svn r23446) -Codechange: move _cur_palette and it's related first/count dirty variables into a single structure
2011-12-08 18:13:29 +00:00
rubidium
2ccbd2a6f5
(svn r23446) -Codechange: move _cur_palette and it's related first/count dirty variables into a single structure
2011-12-08 18:13:29 +00:00
frosch
4b0b43da2e
(svn r23343) -Fix (r23332): Incorrect encoding of sprites with much transparency.
2011-11-27 14:53:05 +00:00
frosch
f8478cecb3
(svn r23343) -Fix (r23332): Incorrect encoding of sprites with much transparency.
2011-11-27 14:53:05 +00:00
peter1138
fad1c81243
(svn r23332) -Fix (r23316): Length of transparent pixels could exceed a byte. (frosch)
2011-11-26 13:36:38 +00:00
peter1138
cd6249dfc5
(svn r23332) -Fix (r23316): Length of transparent pixels could exceed a byte. (frosch)
2011-11-26 13:36:38 +00:00
peter1138
9e0e4bf639
(svn r23315) -Codechange: Only encode sprites for zoom levels that will be used.
2011-11-24 12:26:44 +00:00
peter1138
15d0a22aac
(svn r23315) -Codechange: Only encode sprites for zoom levels that will be used.
2011-11-24 12:26:44 +00:00
truebrain
e271463efa
(svn r23311) -Remove: removed the silly blitter called 8bpp-debug. You can find him at the same place as you can find CTRL+D. Sorry for those who liked to trip while playing OpenTTD; I truly am sorry :D
2011-11-23 19:36:11 +00:00
truebrain
ecbe29ecb7
(svn r23311) -Remove: removed the silly blitter called 8bpp-debug. You can find him at the same place as you can find CTRL+D. Sorry for those who liked to trip while playing OpenTTD; I truly am sorry :D
2011-11-23 19:36:11 +00:00
rubidium
33d71b45fe
(svn r23198) -Codechange: introduce a free that takes const pointers so we don't need to cast to void/non-const before being able to free
2011-11-12 13:00:29 +00:00
rubidium
7fd1e1df81
(svn r23198) -Codechange: introduce a free that takes const pointers so we don't need to cast to void/non-const before being able to free
2011-11-12 13:00:29 +00:00
rubidium
3053d8e3b5
(svn r23194) -Codechange: don't cast away const needlessly
2011-11-12 08:26:30 +00:00
rubidium
4f87d2e88c
(svn r23194) -Codechange: don't cast away const needlessly
2011-11-12 08:26:30 +00:00
peter1138
504c018c2e
(svn r23016) -Change: Disable palette animation for pixels with alpha, as the alpha and previous colour information will be lost when the palette is animated.
2011-10-11 07:13:36 +00:00
peter1138
719f6618d7
(svn r23016) -Change: Disable palette animation for pixels with alpha, as the alpha and previous colour information will be lost when the palette is animated.
2011-10-11 07:13:36 +00:00
michi_cc
7b35dd4f54
(svn r23000) -Feature: Base graphics sets can now specify a preferred blitter which OpenTTD uses to decide which blitter to load.
2011-10-04 21:35:47 +00:00
michi_cc
c575b5bbd7
(svn r23000) -Feature: Base graphics sets can now specify a preferred blitter which OpenTTD uses to decide which blitter to load.
2011-10-04 21:35:47 +00:00
frosch
ca1469b782
(svn r22439) -Fix (r22291, r22426): Drawing lines of length zero failed.
2011-05-08 18:20:21 +00:00
frosch
b7c6424104
(svn r22439) -Fix (r22291, r22426): Drawing lines of length zero failed.
2011-05-08 18:20:21 +00:00
frosch
d3f23f0fbd
(svn r22426) -Fix (r22291): Drawing vertical and horizontal lines of width 1 missed drawing the first pixel.
2011-05-05 20:20:52 +00:00
frosch
f976cddcba
(svn r22426) -Fix (r22291): Drawing vertical and horizontal lines of width 1 missed drawing the first pixel.
2011-05-05 20:20:52 +00:00
frosch
74e71380ef
(svn r22419) -Change: Always use the DOS palette for drawing.
...
-Remove: the '-i' option for palette selection.
2011-05-04 17:12:37 +00:00
frosch
bbcd2bab5d
(svn r22419) -Change: Always use the DOS palette for drawing.
...
-Remove: the '-i' option for palette selection.
2011-05-04 17:12:37 +00:00
rubidium
7dfcc69011
(svn r22397) -Document: some tidbits of the blitter code
2011-05-01 10:15:33 +00:00
rubidium
485c7cd99e
(svn r22397) -Document: some tidbits of the blitter code
2011-05-01 10:15:33 +00:00
frosch
facd1301fc
(svn r22383) -Codechange: Rename PALETTE_TO_STRUCT_GREY to PALETTE_NEWSPAPER as it does not belong to the other PALETTE_TO_STRUCT_xxx recolourings.
2011-04-29 20:47:36 +00:00
frosch
1ffd720f81
(svn r22383) -Codechange: Rename PALETTE_TO_STRUCT_GREY to PALETTE_NEWSPAPER as it does not belong to the other PALETTE_TO_STRUCT_xxx recolourings.
2011-04-29 20:47:36 +00:00
frosch
1db0b427d9
(svn r22302) -Codechange: Replace a linear search with a binary search.
2011-04-09 11:32:11 +00:00
frosch
ecb3701210
(svn r22302) -Codechange: Replace a linear search with a binary search.
2011-04-09 11:32:11 +00:00
frosch
c81c55e008
(svn r22291) -Add: a linewidth argument to GfxDrawLine() and Blitter::DrawLine().
2011-04-02 16:39:30 +00:00
frosch
b18211bb9d
(svn r22291) -Add: a linewidth argument to GfxDrawLine() and Blitter::DrawLine().
2011-04-02 16:39:30 +00:00
frosch
d0511a0f74
(svn r22290) -Codechange: Somewhat deduplicate one line of code.
2011-04-02 15:07:58 +00:00
frosch
7659575cfa
(svn r22290) -Codechange: Somewhat deduplicate one line of code.
2011-04-02 15:07:58 +00:00
frosch
81b419c7d5
(svn r22288) -Codechange: Deduplicate Blitter_8bppBase::DrawLine() and Blitter_32bppBase::DrawLine() into Blitter::DrawLine().
2011-04-02 11:55:54 +00:00
frosch
004c93f9da
(svn r22288) -Codechange: Deduplicate Blitter_8bppBase::DrawLine() and Blitter_32bppBase::DrawLine() into Blitter::DrawLine().
2011-04-02 11:55:54 +00:00
rubidium
05199a641a
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
frosch
dfff637487
(svn r21782) -Codechange: Move declaration of AllocatorProc from Blitter:: to spritecache.h
2011-01-14 15:34:33 +00:00
frosch
3d1008318b
(svn r21782) -Codechange: Move declaration of AllocatorProc from Blitter:: to spritecache.h
2011-01-14 15:34:33 +00:00
rubidium
8c85b4ce3d
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
alberth
e3b24801e2
(svn r19132) -Codechange: No need to end a line with ;;.
2010-02-14 16:31:35 +00:00
alberth
33a96b5ef3
(svn r19132) -Codechange: No need to end a line with ;;.
2010-02-14 16:31:35 +00:00
yexo
9a80d81f4c
(svn r19094) -Codechange: don't check for NULL values before calling StrEmpty
2010-02-11 14:58:51 +00:00
yexo
6406b75b8f
(svn r19094) -Codechange: don't check for NULL values before calling StrEmpty
2010-02-11 14:58:51 +00:00
alberth
206c1b4cd0
(svn r18907) -Cleanup: Smallmap was the last user of SetPixelIfEmpty().
2010-01-23 22:37:14 +00:00
alberth
b2f9b0ac43
(svn r18907) -Cleanup: Smallmap was the last user of SetPixelIfEmpty().
2010-01-23 22:37:14 +00:00
rubidium
72ce1f4979
(svn r18873) -Codechange: use PaletteID also in the blitter
2010-01-21 01:44:51 +00:00
rubidium
db33e32b4d
(svn r18873) -Codechange: use PaletteID also in the blitter
2010-01-21 01:44:51 +00:00
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
d39be5715f
(svn r18791) -Fix [FS#3504]: when copying an 'image' back into the buffer the 32bpp anim blitter triggered palette check of the whole window instead of only the part the got copied back
2010-01-12 16:38:48 +00:00
rubidium
70aad27dcb
(svn r18791) -Fix [FS#3504]: when copying an 'image' back into the buffer the 32bpp anim blitter triggered palette check of the whole window instead of only the part the got copied back
2010-01-12 16:38:48 +00:00
peter1138
ebe260f575
(svn r18709) -Fix (r10227,FS#3464): Animation buffer for 32bpp-anim blitter was only validated during sprite blitting, other drawing operations didn't check it. Initial startup and window resize could therefore lead to crash.
2010-01-04 02:32:36 +00:00
peter1138
abb147d974
(svn r18709) -Fix (r10227,FS#3464): Animation buffer for 32bpp-anim blitter was only validated during sprite blitting, other drawing operations didn't check it. Initial startup and window resize could therefore lead to crash.
2010-01-04 02:32:36 +00:00
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
2e5596025c
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
2009-09-19 15:17:47 +00:00
rubidium
ca91a97826
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
2009-09-19 15:17:47 +00:00
rubidium
310465da07
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
2009-09-19 09:51:14 +00:00
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
2009-09-19 09:51:14 +00:00
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
c096e3d54c
(svn r17228) -Codechange: some coding style fixes
2009-08-20 10:23:39 +00:00
rubidium
7fb95e2c2b
(svn r17228) -Codechange: some coding style fixes
2009-08-20 10:23:39 +00:00
smatz
721a0b0608
(svn r16628) -Codechange: remove one gcc2 hack
2009-06-22 23:15:27 +00:00
smatz
d703f0c3b5
(svn r16628) -Codechange: remove one gcc2 hack
2009-06-22 23:15:27 +00:00
smatz
d091c7d80f
(svn r16492) -Remove: support for gcc2. It hasn't been able to compile OTTD for months. All attempts to do another workaround failed.
2009-06-01 11:49:46 +00:00
smatz
c03ce4b1c7
(svn r16492) -Remove: support for gcc2. It hasn't been able to compile OTTD for months. All attempts to do another workaround failed.
2009-06-01 11:49:46 +00:00
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
2009-03-15 00:32:18 +00:00
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
2009-03-15 00:32:18 +00:00
rubidium
f3e0fd7416
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
2009-03-14 18:16:29 +00:00
rubidium
9d018723b7
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
2009-03-14 18:16:29 +00:00
rubidium
9ab8a2aab1
(svn r15556) -Change: don't temporary malloc+free when encoding sprites, just reuse the same piece of allocated memory for each encoding.
2009-02-23 17:54:02 +00:00
rubidium
3ba802e995
(svn r15556) -Change: don't temporary malloc+free when encoding sprites, just reuse the same piece of allocated memory for each encoding.
2009-02-23 17:54:02 +00:00
rubidium
89e1afdaa0
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
2009-02-09 02:57:15 +00:00
rubidium
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
2009-02-09 02:57:15 +00:00
smatz
16d1904e70
(svn r15324) -Codechange: unify the class used for comparing of strings for std::map
2009-02-03 18:08:07 +00:00
smatz
5ad1cd32b2
(svn r15324) -Codechange: unify the class used for comparing of strings for std::map
2009-02-03 18:08:07 +00:00
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
peter1138
384e6c764d
(svn r14912) -Codechange: Autoprobe 'null' blitter when built as dedicated-only.
2009-01-08 14:30:29 +00:00
peter1138
85c0d42616
(svn r14912) -Codechange: Autoprobe 'null' blitter when built as dedicated-only.
2009-01-08 14:30:29 +00:00
peter1138
553d65f584
(svn r14907) -Codechange: Remove 32 character limit from driver/blitter selection and parameters.
2009-01-08 11:06:07 +00:00
peter1138
6b6fd36050
(svn r14907) -Codechange: Remove 32 character limit from driver/blitter selection and parameters.
2009-01-08 11:06:07 +00:00
rubidium
0d2f84e117
(svn r14540) -Codechange: introduce [v]seprintf which are like [v]snprintf but do return the number of characters written instead of the number of characters that would be written; as size_t is unsigned substraction can cause integer underflows quite quickly.
2008-10-28 14:42:31 +00:00
rubidium
0d254e8914
(svn r14540) -Codechange: introduce [v]seprintf which are like [v]snprintf but do return the number of characters written instead of the number of characters that would be written; as size_t is unsigned substraction can cause integer underflows quite quickly.
2008-10-28 14:42:31 +00:00
rubidium
c358955127
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
2008-09-02 15:20:38 +00:00
rubidium
c8e8911ef6
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
2008-09-02 15:20:38 +00:00
rubidium
07c20252c3
(svn r14146) -Codechange: allow palette override in both ways and remove some unneeded '(x == 0) ? 0 : 1' constructs.
2008-08-23 20:16:54 +00:00
rubidium
200f405706
(svn r14146) -Codechange: allow palette override in both ways and remove some unneeded '(x == 0) ? 0 : 1' constructs.
2008-08-23 20:16:54 +00:00
glx
c7453851d3
(svn r14080) -Fix (r14052): assert triggered when drawing chat window with 32bpp-anim blitter (backup buffer was too small)
2008-08-15 22:06:58 +00:00
glx
c10691faff
(svn r14080) -Fix (r14052): assert triggered when drawing chat window with 32bpp-anim blitter (backup buffer was too small)
2008-08-15 22:06:58 +00:00
bjarni
14ea857edb
(svn r14032) -Fix (r13584): [OSX] changed the condition for selecting 8 or 32 bpp blitter by default
...
Now we will pick 32 bpp if no 8 bpp fullscreen resolutions are available on the main display (the one with the dock)
2008-08-09 17:56:31 +00:00
bjarni
fbef6535a5
(svn r14032) -Fix (r13584): [OSX] changed the condition for selecting 8 or 32 bpp blitter by default
...
Now we will pick 32 bpp if no 8 bpp fullscreen resolutions are available on the main display (the one with the dock)
2008-08-09 17:56:31 +00:00
belugas
e89b108161
(svn r14016) -Codechange: Remove some magical numbers
2008-08-08 02:28:28 +00:00
belugas
a2f590aeec
(svn r14016) -Codechange: Remove some magical numbers
2008-08-08 02:28:28 +00:00
smatz
632e2059b9
(svn r13721) -Codechange: one less multiplication for colour mixing in 32bpp blitters (GeekToo)
2008-07-17 23:43:47 +00:00
smatz
69cb2f088f
(svn r13721) -Codechange: one less multiplication for colour mixing in 32bpp blitters (GeekToo)
2008-07-17 23:43:47 +00:00
smatz
7ec2ad621d
(svn r13640) -Codechange: make colours behind not fully solid objects less darker for BM_TRANSPARENT (for 32bpp blitters)
2008-06-26 16:47:29 +00:00
smatz
1834a2f670
(svn r13640) -Codechange: make colours behind not fully solid objects less darker for BM_TRANSPARENT (for 32bpp blitters)
2008-06-26 16:47:29 +00:00
smatz
faebe10d81
(svn r13639) -Codechange: rewrite 32bpp-anim and 32bpp-optimized drawing and encoding so it uses similiar scheme as 8bpp-optimized
...
All zoom levels are stored and a kind of RLE is used. Together with further changes and reducing number of variables, drawing is ~50% faster in average.
2008-06-26 15:46:19 +00:00
smatz
114c820c56
(svn r13639) -Codechange: rewrite 32bpp-anim and 32bpp-optimized drawing and encoding so it uses similiar scheme as 8bpp-optimized
...
All zoom levels are stored and a kind of RLE is used. Together with further changes and reducing number of variables, drawing is ~50% faster in average.
2008-06-26 15:46:19 +00:00
smatz
96d880ea9e
(svn r13619) -Codechange: use 'const char *' instead of std::string for blitter and driver names
...
Removes indirect dependency on <string> for 20 files, reduces binary size by 16kB
2008-06-24 09:15:45 +00:00
smatz
61847389d6
(svn r13619) -Codechange: use 'const char *' instead of std::string for blitter and driver names
...
Removes indirect dependency on <string> for 20 files, reduces binary size by 16kB
2008-06-24 09:15:45 +00:00
smatz
6cb9d3802d
(svn r13602) -Codechange: little speedup for 8bpp-optimized blitter
2008-06-21 20:58:34 +00:00
smatz
37b8e87454
(svn r13602) -Codechange: little speedup for 8bpp-optimized blitter
2008-06-21 20:58:34 +00:00
bjarni
7fa33c28a9
(svn r13584) -Fix: [OSX] Fixed issue where 10.5 failed to switch to fullscreen
...
This is done by selecting the 32bpp-anim blitter by default as it seems Apple removed some 8bpp support
Since this is done at runtime the same binary will still select 8bpp on 10.3 and 10.4
2008-06-19 17:54:23 +00:00
bjarni
6bd2d0ffcb
(svn r13584) -Fix: [OSX] Fixed issue where 10.5 failed to switch to fullscreen
...
This is done by selecting the 32bpp-anim blitter by default as it seems Apple removed some 8bpp support
Since this is done at runtime the same binary will still select 8bpp on 10.3 and 10.4
2008-06-19 17:54:23 +00:00
smatz
5259d13da7
(svn r13571) -Codechange: define channels in struct Colour in different order on LE and BE machines
2008-06-18 21:19:04 +00:00
smatz
7a7ff65ac5
(svn r13571) -Codechange: define channels in struct Colour in different order on LE and BE machines
2008-06-18 21:19:04 +00:00
smatz
25db4b3aae
(svn r13568) -Fix (r13564): Windows build asserts where I wouldn't expect it to
2008-06-18 20:20:12 +00:00
smatz
bc12e5453c
(svn r13568) -Fix (r13564): Windows build asserts where I wouldn't expect it to
2008-06-18 20:20:12 +00:00
smatz
883ffd1683
(svn r13564) -Codechange: do not use SetPixel in PaletteAnimate, access destination directly instead. Makes palette animation ~40% faster.
2008-06-18 13:11:02 +00:00
smatz
cc2f9187cc
(svn r13564) -Codechange: do not use SetPixel in PaletteAnimate, access destination directly instead. Makes palette animation ~40% faster.
2008-06-18 13:11:02 +00:00
smatz
4e2e078743
(svn r13551) -Codechange: store offsets to different zoom levels in a distinguished struct instead in the data stream for 8bpp-optimized
2008-06-17 17:25:22 +00:00
smatz
dedb0033b3
(svn r13551) -Codechange: store offsets to different zoom levels in a distinguished struct instead in the data stream for 8bpp-optimized
2008-06-17 17:25:22 +00:00
smatz
4ce73a679c
(svn r13445) -Codechange: make 32bpp_optimized blitter ~10-20% faster in drawing (depends on architecture and compiler)
2008-06-10 17:28:37 +00:00
smatz
8123d4de11
(svn r13445) -Codechange: make 32bpp_optimized blitter ~10-20% faster in drawing (depends on architecture and compiler)
2008-06-10 17:28:37 +00:00
smatz
9cf0c8c96d
(svn r13354) -Codechange: make 8bpp_optimized blitter ~25% faster in encoding and ~15% faster in drawing (depends on architecture)
2008-06-01 19:36:55 +00:00
smatz
0812e2f959
(svn r13354) -Codechange: make 8bpp_optimized blitter ~25% faster in encoding and ~15% faster in drawing (depends on architecture)
2008-06-01 19:36:55 +00:00
smatz
69ebefe1ac
(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts
2008-06-01 15:08:14 +00:00
smatz
ed462507b2
(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts
2008-06-01 15:08:14 +00:00
glx
ca27e25ab0
(svn r13161) -Fix: free the blitter list when the last blitter is removed.
2008-05-18 12:47:08 +00:00
glx
e82bab5323
(svn r13161) -Fix: free the blitter list when the last blitter is removed.
2008-05-18 12:47:08 +00:00
rubidium
1ce0b03bf0
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
rubidium
ca1f8fbe2e
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
2008-04-18 04:37:06 +00:00
rubidium
9d8fa486af
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
2008-04-18 04:37:06 +00:00
rubidium
df12937f19
(svn r11839) -Codechange: move some variables from variables.h to a more logical location.
2008-01-13 21:41:24 +00:00
rubidium
3ca95f2a85
(svn r11839) -Codechange: move some variables from variables.h to a more logical location.
2008-01-13 21:41:24 +00:00
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
2008-01-13 01:21:35 +00:00
rubidium
d4e6a6bf57
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
2008-01-13 01:21:35 +00:00
frosch
7d3ecec5b9
(svn r11813) -Fix [FS#1602]: Switch _screen to the output buffer and disable usage of 32bpp-anim animation buffer during giant screenshots.
2008-01-11 17:12:41 +00:00
frosch
cbe7e5d668
(svn r11813) -Fix [FS#1602]: Switch _screen to the output buffer and disable usage of 32bpp-anim animation buffer during giant screenshots.
2008-01-11 17:12:41 +00:00
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
2008-01-07 14:23:25 +00:00
rubidium
a3ccdcea36
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
2008-01-07 14:23:25 +00:00
rubidium
7f037d15d7
(svn r11704) -Codechange: remove another bunch of useless includes.
2007-12-26 23:04:26 +00:00
rubidium
0b1d3e43e5
(svn r11704) -Codechange: remove another bunch of useless includes.
2007-12-26 23:04:26 +00:00
rubidium
81bf9f8503
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
2007-12-25 11:26:07 +00:00
rubidium
429521a7d1
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
2007-12-25 11:26:07 +00:00
rubidium
00c9d3ef20
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
2007-12-25 09:48:53 +00:00
rubidium
bf98e25e43
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
2007-12-25 09:48:53 +00:00
rubidium
507463e420
(svn r11684) -Codechange: split gfx.h in a type and functional header.
2007-12-23 10:56:02 +00:00
rubidium
a773d45885
(svn r11684) -Codechange: split gfx.h in a type and functional header.
2007-12-23 10:56:02 +00:00
rubidium
1f6043458c
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
2007-12-22 23:30:28 +00:00
rubidium
8f0e68285b
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
2007-12-22 23:30:28 +00:00
rubidium
8ebdfb258f
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
2007-12-21 19:21:21 +00:00
rubidium
01e20c9140
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
2007-12-21 19:21:21 +00:00
smatz
8d91abdfe3
(svn r11656) -Codechange: add ZOOM_LVL_BEGIN and postfix operators so ZoomLevel can be used in some iterations
2007-12-17 22:04:07 +00:00
smatz
bda9d4a236
(svn r11656) -Codechange: add ZOOM_LVL_BEGIN and postfix operators so ZoomLevel can be used in some iterations
2007-12-17 22:04:07 +00:00
smatz
d5dbce8331
(svn r11652) -Codechange: add the svn $ header for several files
2007-12-17 01:35:45 +00:00
smatz
93c3e0d6ad
(svn r11652) -Codechange: add the svn $ header for several files
2007-12-17 01:35:45 +00:00
glx
15085aa7f4
(svn r11611) -Codechange: it is now possible to use a define to enable asserts and show them in crash.log for MSVC release builds
2007-12-09 21:20:21 +00:00
glx
6a83f9141b
(svn r11611) -Codechange: it is now possible to use a define to enable asserts and show them in crash.log for MSVC release builds
2007-12-09 21:20:21 +00:00
rubidium
d041e06070
(svn r11169) -Fix [FS#1255]: obiwan in Blitter::Drawline(), which caused it to clip too much at screen/viewport borders. Patch by frosch.
2007-09-26 14:17:26 +00:00
rubidium
2239809bdc
(svn r11169) -Fix [FS#1255]: obiwan in Blitter::Drawline(), which caused it to clip too much at screen/viewport borders. Patch by frosch.
2007-09-26 14:17:26 +00:00
truelight
d146a78f39
(svn r11093) -Fix r11092: also add a DEBUG(driver, 1) if the blitter is loaded, to show which one really loaded
2007-09-13 14:44:49 +00:00
truelight
b21093ea8f
(svn r11093) -Fix r11092: also add a DEBUG(driver, 1) if the blitter is loaded, to show which one really loaded
2007-09-13 14:44:49 +00:00
truelight
ca161c8e72
(svn r11092) -Add: allow 'blitter=<value>' in openttd.cfg to set the blitter (so you don't have to keep on doing 'openttd -b 32bpp-optimized'..)
2007-09-13 12:28:53 +00:00
truelight
f1336fba68
(svn r11092) -Add: allow 'blitter=<value>' in openttd.cfg to set the blitter (so you don't have to keep on doing 'openttd -b 32bpp-optimized'..)
2007-09-13 12:28:53 +00:00
truelight
f055b0b557
(svn r11083) -Fix r11078: don't clear the anim buffer when alpha = 0 (tnx to frosch)
2007-09-10 14:55:46 +00:00
truelight
1de38b4119
(svn r11083) -Fix r11078: don't clear the anim buffer when alpha = 0 (tnx to frosch)
2007-09-10 14:55:46 +00:00
truelight
65aed53cab
(svn r11082) -Fix r11081: save before commit (yeah, whitelines are important too!)
2007-09-10 00:05:27 +00:00
truelight
8de52c089d
(svn r11082) -Fix r11081: save before commit (yeah, whitelines are important too!)
2007-09-10 00:05:27 +00:00
truelight
f97d2b4706
(svn r11081) -Fix r11080: now solved the problem in a pretty way: don't do animation if we are not drawing to the screen-pointer
2007-09-10 00:03:47 +00:00
truelight
fc80e722cf
(svn r11081) -Fix r11080: now solved the problem in a pretty way: don't do animation if we are not drawing to the screen-pointer
2007-09-10 00:03:47 +00:00
truelight
e2fe88fb70
(svn r11080) -Fix r11079: fix it, still dirty, correctly, as the last commit was ... wrong ;)
2007-09-09 23:57:47 +00:00
truelight
ab880fdf07
(svn r11080) -Fix r11079: fix it, still dirty, correctly, as the last commit was ... wrong ;)
2007-09-09 23:57:47 +00:00
truelight
b823cc2b6b
(svn r11079) -Fix: dirty fix to allow big-screenshots with 32bpp-anim
2007-09-09 23:47:55 +00:00
truelight
3c31722825
(svn r11079) -Fix: dirty fix to allow big-screenshots with 32bpp-anim
2007-09-09 23:47:55 +00:00
truelight
f827093ba7
(svn r11078) -Add: added 32bpp-optimized, which is almost twice as fast as 32bpp-simple (based on the work of frosch)
...
-Add: let 32bpp-anim use 32bpp-optimizeds, so he profits from the speed-up too
2007-09-09 23:16:01 +00:00
truelight
34e48f7886
(svn r11078) -Add: added 32bpp-optimized, which is almost twice as fast as 32bpp-simple (based on the work of frosch)
...
-Add: let 32bpp-anim use 32bpp-optimizeds, so he profits from the speed-up too
2007-09-09 23:16:01 +00:00
truelight
3de2c716df
(svn r11076) -Fix: MakeTransparent of 32bpp blitter used 0..100; using 0..255 makes it much faster (frosch)
...
-Fix: ComposeColourXXX could work a tiny bit faster when using 256, not 255 as value to divide with; downside is that it can give alpha errors (frosch)
2007-09-09 21:56:52 +00:00
truelight
89bdfaacd9
(svn r11076) -Fix: MakeTransparent of 32bpp blitter used 0..100; using 0..255 makes it much faster (frosch)
...
-Fix: ComposeColourXXX could work a tiny bit faster when using 256, not 255 as value to divide with; downside is that it can give alpha errors (frosch)
2007-09-09 21:56:52 +00:00
truelight
1194f227da
(svn r10837) -Fix [FS#1102]: DrawLine didn't bound-check the first pixel that was drawn (frosch)
2007-08-10 13:11:53 +00:00
truelight
6771f5ca20
(svn r10837) -Fix [FS#1102]: DrawLine didn't bound-check the first pixel that was drawn (frosch)
2007-08-10 13:11:53 +00:00
truelight
68c5bcf960
(svn r10561) -Fix: don't give 'unused variable' warnings when disabling asserts
2007-07-14 20:21:02 +00:00
truelight
a2a3b7da24
(svn r10561) -Fix: don't give 'unused variable' warnings when disabling asserts
2007-07-14 20:21:02 +00:00
peter1138
5e85e8c5e0
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
2007-07-05 12:23:54 +00:00
peter1138
68c6add8cc
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
2007-07-05 12:23:54 +00:00
peter1138
12302ae8c7
(svn r10412) -Codechange: Remove unnecessary inclusion of hal.h in various files (and add one)
2007-07-03 11:31:38 +00:00
peter1138
b1bad4ab46
(svn r10412) -Codechange: Remove unnecessary inclusion of hal.h in various files (and add one)
2007-07-03 11:31:38 +00:00
rubidium
926d103482
(svn r10358) -Codechange: remove the cargopacket leakchecker as it never asserted in almost a week of stresstesting, so I'm pretty sure all cornercases are tested by now.
2007-06-27 17:19:05 +00:00
rubidium
67f46b40ab
(svn r10358) -Codechange: remove the cargopacket leakchecker as it never asserted in almost a week of stresstesting, so I'm pretty sure all cornercases are tested by now.
2007-06-27 17:19:05 +00:00
rubidium
4f73e2a030
(svn r10355) -Fix (r10092): memory leak when encoding (reading) sprites.
2007-06-27 16:41:37 +00:00
rubidium
45ae73e03f
(svn r10355) -Fix (r10092): memory leak when encoding (reading) sprites.
2007-06-27 16:41:37 +00:00