• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • FMSLogo
  • Bugs
FMSLogo

BITSAVE silently treats unknown maxcolordepth inputs as 24

A Logo programming environment for Microsoft Windows

Brought to you by: david_costanzo
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Feature Requests
    • Bugs
    • Support Requests
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • v_6.06x
  • v_6.07.X
  • v_6.08.X
  • v_6.10.X
  • v_6.11.X
  • v_6.13.X
  • v_6.22.X
  • v_6.25.X
  • v_6.26.X
  • v_6.27.X
  • v_6.28.X
  • v_6.29.X

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#607 BITSAVE silently treats unknown maxcolordepth inputs as 24

v_6.06x
open
nobody
None
5
2026-04-20
2026-04-20
David Costanzo
No

BITSAVE has an optional input named "maxcolordepth" which is documented as

The maxcolordepth input is total number of colors in the bitmap in bits per pixel. That is, 1 = 2 colors, 4 = 16 colors, 8 = 256 colors, and 24 = 16.7 million colors. The default value is 24.

Any other integer value is treated as 24. For example:

(BITSAVE "bitmap.bmp 3)

Creates a bitmap file with 24 bits per pixel. This feels wrong to me. It's acceptable to have a default of 24 to mean "I'll do what I think is right in absence of specific direction", but if a programmer explicitly says they want the bitmap to be created with a maximum of 3 colors, FMSLogo shouldn't ignore them and create a true-color bitmap with 24 bpp. Since there's no such thing as 3 bpp bitmap file, it's more sensible to throw a "doesn't like input" error. This way, FMSLogo doesn't disobey the programmer and the programmer might learn something about bitmap files.

Note that this would be a breaking change and should only be done in a major version update.

Discussion


Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise