Changeset - r13391:0f80bdbb70d3
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-10-30 23:58:40
smatz@openttd.org
(svn r17910) -Fix: 32bpp BMP screenshots were broken when screen width wasn't multiple of 4
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/screenshot.cpp
Show inline comments
 
@@ -90,7 +90,8 @@ static bool MakeBmpImage(char *name, Scr
 
	if (f == NULL) return false;
 

	
 
	/* each scanline must be aligned on a 32bit boundary */
 
	padw = Align(w, 4);
 
	padw = w;
 
	if (pixelformat == 8) padw = Align(padw, 4);
 

	
 
	if (pixelformat == 8) pal_size = sizeof(RgbQuad) * 256;
 

	
0 comments (0 inline, 0 general)