Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bugfix bmp2splash

  • Loading branch information...
commit 947bcb7f8f95dd9788246df0df1d69190c78bbfa 1 parent 78cc125
@sakuramilk authored
Showing with 3 additions and 5 deletions.
  1. +0 −4 _build.sh
  2. +3 −1 release-tools/bmp2splash/bmp2splash.cpp
View
4 _build.sh
@@ -4,10 +4,6 @@ KERNEL_DIR=$PWD
INITRAMFS_SRC_DIR=../sc02c_initramfs
INITRAMFS_TMP_DIR=/tmp/sc02c_initramfs
-echo "1=$1"
-echo "2=$2"
-echo "3=$3"
-
cpoy_initramfs()
{
View
4 release-tools/bmp2splash/bmp2splash.cpp
@@ -166,10 +166,12 @@ int main(int argc, char** argv)
goto exit;
}
+ uint8_t *pLine;
printf("const unsigned long LOGO_RGB24[] = {\n");
for (uint32_t h = 0; h < bmpInfoHeader.biHeight; h++) {
+ pLine = pBmpData + (bmpInfoHeader.biHeight - h - 1) * bmpInfoHeader.biWidth * 3;
for (uint32_t w = 0; w < bmpInfoHeader.biWidth; w++) {
- uint32_t rgba = read_3byte(pBmpData);
+ uint32_t rgba = read_3byte(pLine);
printf("0x%08x,", rgba);
if ((++count % 10) == 0) {
printf("\n");
Please sign in to comment.
Something went wrong with that request. Please try again.