Skip to content

vq_color test wrong? #94

Description

@DavidGZ

Some colour printer drivers do not allow modifying the colour of each register. There is a simple test for checking if the driver permits you to change index colours:
Call vq_color with set_flag value of 0 and save the return
Call vs_color to modify that colour index by a significant value
Call vq_color with set_flag value of 0 and then compare it with what you set
Restore old value
If equivalent values are returned, you can modify each colour index

If I understand this correctly the test described above for vq_color is wrong, the second call to vq_color should have the set flag set to 1 instead of 0 for this test to make sense.

The Compendium has the same test described in its vq_color page with the same error.
If somebody confirms that I'm not missing anything I'll correct this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions