mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Update the pointer into the bitmap correctly. The previous code
had the pointer off by 4 bytes if the width of the bitmap is a multiple of four.
This commit is contained in:
parent
9365684c0c
commit
61329bcee4
2 changed files with 4 additions and 4 deletions
|
|
@ -24,7 +24,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id:$
|
||||
* $Id: splash_bmp.c,v 1.1 1999/01/11 03:34:56 yokota Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
@ -382,7 +382,7 @@ bmp_DecodeLine(BMP_INFO *info, int line)
|
|||
case BI_RGB:
|
||||
for (x = 0; x < info->width; x++, info->index++)
|
||||
bmp_SetPix(info, x, line, *info->index);
|
||||
info->index += 4 - (x % 4);
|
||||
info->index += 3 - (--x % 4);
|
||||
break;
|
||||
case BI_RLE4:
|
||||
bmp_DecodeRLE4(info, line);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id:$
|
||||
* $Id: splash_bmp.c,v 1.1 1999/01/11 03:34:56 yokota Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
@ -382,7 +382,7 @@ bmp_DecodeLine(BMP_INFO *info, int line)
|
|||
case BI_RGB:
|
||||
for (x = 0; x < info->width; x++, info->index++)
|
||||
bmp_SetPix(info, x, line, *info->index);
|
||||
info->index += 4 - (x % 4);
|
||||
info->index += 3 - (--x % 4);
|
||||
break;
|
||||
case BI_RLE4:
|
||||
bmp_DecodeRLE4(info, line);
|
||||
|
|
|
|||
Loading…
Reference in a new issue