Changeset - r6988:8026972849a3
[Not reviewed]
master
0 3 0
truelight - 17 years ago 2007-06-21 13:31:41
truelight@openttd.org
(svn r10244) -Fix: make sure to let 32bpp-anim report the increased buffer-size it needs
3 files changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/blitter/32bpp_anim.cpp
Show inline comments
 
@@ -244,6 +244,11 @@ void Blitter_32bppAnim::ScrollBuffer(voi
 
	Blitter_32bppBase::ScrollBuffer(video, left, top, width, height, scroll_x, scroll_y);
 
}
 

	
 
int Blitter_32bppAnim::BufferSize(int width, int height)
 
{
 
	return width * height * (sizeof(uint32) + sizeof(uint8));
 
}
 

	
 
void Blitter_32bppAnim::PaletteAnimate(uint start, uint count)
 
{
 
	uint8 *anim = this->anim_buf;
src/blitter/32bpp_anim.hpp
Show inline comments
 
@@ -29,6 +29,7 @@ public:
 
	/* virtual */ void CopyFromBuffer(void *video, const void *src, int width, int height);
 
	/* virtual */ void CopyToBuffer(const void *video, void *dst, int width, int height);
 
	/* virtual */ void ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y);
 
	/* virtual */ int BufferSize(int width, int height);
 
	/* virtual */ void PaletteAnimate(uint start, uint count);
 
	/* virtual */ Blitter::PaletteAnimation UsePaletteAnimation();
 
};
src/texteff.cpp
Show inline comments
 
@@ -55,7 +55,7 @@ static bool _textmessage_visible = false
 
/* The chatbox grows from the bottom so the coordinates are pixels from
 
 * the left and pixels from the bottom. The height is the maximum height */
 
static const Oblong _textmsg_box = {10, 30, 500, 150};
 
static uint8 _textmessage_backup[150 * 500 * 5]; // (height * width)
 
static uint8 _textmessage_backup[150 * 500 * 6]; // (height * width)
 

	
 
static inline uint GetTextMessageCount()
 
{
0 comments (0 inline, 0 general)