Skip to content

Commit

Permalink
bugfix bmp2splash
Browse files Browse the repository at this point in the history
  • Loading branch information
sakuramilk committed Apr 24, 2012
1 parent 78cc125 commit 947bcb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions _build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
4 changes: 3 additions & 1 deletion release-tools/bmp2splash/bmp2splash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 947bcb7

Please sign in to comment.