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
13 years ago
rubidium
3053d8e3b5
(svn r23194) -Codechange: don't cast away const needlessly
13 years ago
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.
13 years ago
michi_cc
7b35dd4f54
(svn r23000) -Feature: Base graphics sets can now specify a preferred blitter which OpenTTD uses to decide which blitter to load.
13 years ago
frosch
ca1469b782
(svn r22439) -Fix (r22291, r22426): Drawing lines of length zero failed.
14 years ago
frosch
d3f23f0fbd
(svn r22426) -Fix (r22291): Drawing vertical and horizontal lines of width 1 missed drawing the first pixel.
14 years ago
frosch
74e71380ef
(svn r22419) -Change: Always use the DOS palette for drawing.
...
-Remove: the '-i' option for palette selection.
14 years ago
rubidium
7dfcc69011
(svn r22397) -Document: some tidbits of the blitter code
14 years ago
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.
14 years ago
frosch
1db0b427d9
(svn r22302) -Codechange: Replace a linear search with a binary search.
14 years ago
frosch
c81c55e008
(svn r22291) -Add: a linewidth argument to GfxDrawLine() and Blitter::DrawLine().
14 years ago
frosch
d0511a0f74
(svn r22290) -Codechange: Somewhat deduplicate one line of code.
14 years ago
frosch
81b419c7d5
(svn r22288) -Codechange: Deduplicate Blitter_8bppBase::DrawLine() and Blitter_32bppBase::DrawLine() into Blitter::DrawLine().
14 years ago
rubidium
05199a641a
(svn r21890) -Cleanup: remove some unneeded includes
14 years ago
frosch
dfff637487
(svn r21782) -Codechange: Move declaration of AllocatorProc from Blitter:: to spritecache.h
14 years ago
rubidium
8c85b4ce3d
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago
alberth
e3b24801e2
(svn r19132) -Codechange: No need to end a line with ;;.
15 years ago
yexo
9a80d81f4c
(svn r19094) -Codechange: don't check for NULL values before calling StrEmpty
15 years ago
alberth
206c1b4cd0
(svn r18907) -Cleanup: Smallmap was the last user of SetPixelIfEmpty().
15 years ago
rubidium
72ce1f4979
(svn r18873) -Codechange: use PaletteID also in the blitter
15 years ago
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
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
15 years ago
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.
15 years ago
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
2e5596025c
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
15 years ago
rubidium
310465da07
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
c096e3d54c
(svn r17228) -Codechange: some coding style fixes
15 years ago
smatz
721a0b0608
(svn r16628) -Codechange: remove one gcc2 hack
15 years ago
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.
16 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
f3e0fd7416
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
16 years ago
rubidium
9ab8a2aab1
(svn r15556) -Change: don't temporary malloc+free when encoding sprites, just reuse the same piece of allocated memory for each encoding.
16 years ago
rubidium
89e1afdaa0
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
smatz
16d1904e70
(svn r15324) -Codechange: unify the class used for comparing of strings for std::map
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
peter1138
384e6c764d
(svn r14912) -Codechange: Autoprobe 'null' blitter when built as dedicated-only.
16 years ago
peter1138
553d65f584
(svn r14907) -Codechange: Remove 32 character limit from driver/blitter selection and parameters.
16 years ago
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.
16 years ago
rubidium
c358955127
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
16 years ago
rubidium
07c20252c3
(svn r14146) -Codechange: allow palette override in both ways and remove some unneeded '(x == 0) ? 0 : 1' constructs.
16 years ago
glx
c7453851d3
(svn r14080) -Fix (r14052): assert triggered when drawing chat window with 32bpp-anim blitter (backup buffer was too small)
16 years ago
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)
16 years ago
belugas
e89b108161
(svn r14016) -Codechange: Remove some magical numbers
16 years ago
smatz
632e2059b9
(svn r13721) -Codechange: one less multiplication for colour mixing in 32bpp blitters (GeekToo)
16 years ago
smatz
7ec2ad621d
(svn r13640) -Codechange: make colours behind not fully solid objects less darker for BM_TRANSPARENT (for 32bpp blitters)
16 years ago
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.
16 years ago
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
17 years ago
smatz
6cb9d3802d
(svn r13602) -Codechange: little speedup for 8bpp-optimized blitter
17 years ago
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
17 years ago