Skip to content

Commit

Permalink
Remove old commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-stclair authored Jul 5, 2023
1 parent 562cd66 commit faedb4f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tools/make_world_map_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,9 @@
for y in range(0, im.size[1]):
LINE = b''
for x in range(0, im.size[0]):
# RRRRRGGGGGGBBBBB
pixel_lcd = (pix[x, y][0] >> 3) << 11
pixel_lcd |= (pix[x, y][1] >> 2) << 5
pixel_lcd |= (pix[x, y][2] >> 3)
# RRRGGGBB to
# RRR00GGG000BB000
# pixel_lcd = (pix[x, y][0] >> 5) << 5
# pixel_lcd |= (pix[x, y][1] >> 5) << 2
# pixel_lcd |= (pix[x, y][2] >> 6)
LINE += struct.pack('<H', pixel_lcd)
outfile.write(LINE)
print(str(y) + '/' + str(im.size[1]), end="\r")
Expand Down

0 comments on commit faedb4f

Please sign in to comment.