Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

palette demo is broken #158

Closed
Solbeziel opened this issue Apr 3, 2024 · 1 comment
Closed

palette demo is broken #158

Solbeziel opened this issue Apr 3, 2024 · 1 comment

Comments

@Solbeziel
Copy link

Hi, I just noticed that the palette demo is broken. In palette.cc, we have

#define cpTestWindow "\x40\x41\x42\x43\x44\x45"

but the application palette is much bigger than 0x40 colours, so the demo window palette will be appended at position 0x88, thus

#define cpTestWindow "\x88\x89\x8A\x8B\x8C\x8D"

causes the demo window to display the intended colours.

@magiblot
Copy link
Owner

Hi @Solbeziel!

Excuse me for the late reply.

Nice find! I overlooked the fact that this example had been written for Turbo Vision 1.03, which did in fact use an application palette of 0x3F colors:

tvision/include/app.h

Lines 137 to 143 in adb6e3a

#define cpColor \
"\x71\x70\x78\x74\x20\x28\x24\x17\x1F\x1A\x31\x31\x1E\x71\x00" \
"\x37\x3F\x3A\x13\x13\x3E\x21\x00\x70\x7F\x7A\x13\x13\x70\x7F\x00" \
"\x70\x7F\x7A\x13\x13\x70\x70\x7F\x7E\x20\x2B\x2F\x78\x2E\x70\x30" \
"\x3F\x3E\x1F\x2F\x1A\x20\x72\x31\x31\x30\x2F\x3E\x31\x13\x00\x00"

Thank you very much for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants