I read documentation and I thought that display should never be green, because I am drawing green to bitmap and bitmap "red.png" should be green. But it is not.If it is behaving correctly, please tell me how to draw only to bitmap and only to display.Allegro version is 5.1.8 and OS is Debian. Also please tell me how is this program behaving on your computer.Thanks

It didn't save the bitmaps for me at all until I put a al_init_image_addon() right after al_init(). Oh, yeah, there is no "init_allegro()" unless you didn't post a function you wrote yourself, but you must have or it wouldn't have compiled. I used "al_init()".

Anyway, it now shows a blank screen, which turns to red, and both bitmap files are green.

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

Thanks for reply. Yes init_allegro() is function I wrote myself. It only calls al_init() and al_init_image_addon(). I will change code in the first post because this function can be confusing.So it behave differently on your computer. What Allegro version are you using?Can it be caused be operating system? Because I have unstable version of it...Also I have tried some Allegro tests and some of them failed. For example "test_backbuffer.ini" in allegro/tests has 4 failed tests.Maybe some moderator can move this to Allegro Development section, because it looks like bug.

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

What tests? The Allegro examples? They all worked, except the ones for hardware I don't have (such as dual monitors). There was also some resizing thing that didn't work right a couple of years ago, I don't think it's fixed yet.

I don't think I tried them all because it's so tedious, there were a couple of GLSL examples I just ran a few days ago and I'm pretty sure I'd never seen them before (they worked correctly too).

[EDIT]I always get rid of the noveau (?) open source driver and install the Nvidia proprietary driver because the noveau driver sucks so hard, for example, the ex_gldepth example doesn't work right with it. OTOH, about a year ago I reported a problem and spent about three days trying to fix it when I saw a new Nvidia driver had come out and it worked correctly then. Shit happens.

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

I didn't try those, I just fiddled with it for two minutes and tried about five of them (including test_bitmap.ini) and they all flashed a window too fast to really see what's happening and the console is full of OK messages.

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”