Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6604351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:08:37+00:00 2026-05-25T19:08:37+00:00

I have problem with Allegro 4.2.4 running palette mode (256 colors) in Windows 7.

  • 0

I have problem with Allegro 4.2.4 running palette mode (256 colors) in Windows 7. I found over Internet solution of killing explorer and it’s working indeed, however it would be ridiculous to expect that end user will kill explorer when trying to play game.

Then I found solution to replace DDraw.dll with hacked version, but it doesn’t work either – DDHack just results in no screen being shown at all after application launch.

Then I found solution of adding registry hack:

Windows Registry Editor Version 5.00
;This file has been created with DirectDraw Compatibility Tool (http://crappybitter.livejournal.com/tag/ddc_tool)

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectDraw\Compatibility\MyApp]
"Name"="MyApp.exe"
"ID"=dword:4E7B8A88
"Flags"=hex:00,08,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DirectDraw\Compatibility\MyApp]
"Name"="MyApp.exe"
"ID"=dword:4E7B8A88
"Flags"=hex:00,08,00,00

But sadly it won’t work either, the palette keeps flickering with all rainbow colors.

Do I have any other solution other than porting entire application to different programming lib? Is it possible to fix DDraw problem on Vista/W7 without touching palettes? If not, what library will give me palette programming (I am doing game that requires palettes) without such problems on Vista/W7?

I know of one more solution – I can compile Allegro 4.2.4 application as DOS application and run in DosBox. Sadly, but that’s all I can think of now…

Thanks in advance for other solutions!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:08:38+00:00Added an answer on May 25, 2026 at 7:08 pm

    First off, there’s no such version 4.2.4. I assume you mean 4.4.2.

    True palettes are a dying thing. Setting 8-bit color depths just isn’t supported very well on modern operating systems. Regarding Allegro 4.4, you could do this:

    set_color_depth(8);
    set_gfx_mode(GFX_GDI, w, h, 0, 0);
    

    It will give you a windowed mode, and the most compatible palette support on Windows that Allegro 4.4 offers. If you really must have full screen mode, you could try this patch:

    • http://www.allegro.cc/forums/post/862649

    It fixes a problem with corrupted palettes while in the game. It may help with the issue you describe.

    Or you could try using 32-bit color depth for the screen, and use an 8-bit bitmaps for sprites and buffers:

    set_color_depth(desktop_color_depth());
    set_gfx_mode(GFX_AUTODETECT, w, h, 0, 0);
    BITMAP *buffer = create_bitmap_ex(8, w, h);
    

    Of course you would have to blit the bitmap to the screen again after changing the palette, so if you need very fast real time effects, it might not work.

    Alternatively, Allegro 5.1 (i.e., unreleased SVN version) has a palette addon that works via shaders. It’s probably undocumented and likely to change. (Note that the 5 series is not source compatible with the 4 series.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have problem while getting data from Memcached on .NET MVC solution. I have this
I have problem with circle-rectangle intersection.Though A number of discussion i found about it
I have problem, when converting Windows application from .NET2.0 to .NET3.5. I do this
I have problem with importing jar file and running in Geany IDE . This
I have problem running my app on Android 2.3 (Gingerbread). The app has a
I have problem with http://abfoodpolicy.com/ . In IE 8 and 9 the right sidebar
I have problem with my query on C, I’m using the oci8 driver. This
I have problem with repopulating form_upload after validation. Other input fields or selectboxes are
I have problem with show or hide form in Window Form Application. I start
I have problem with UIWebView delay when the load image from url. In my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.