[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On March 2, 2002 12:38 pm, you wrote:
> In reply to Thomas Fjellstrom:
> > With the latest Allegro (just did a cvs upd), using any function
> > except blit to draw directly to the screen causes a 'BadAccess' error
> > from X.
>
> I see something like this as well. Check out this test program:
>
> - ----------------------------------------
>
> #include <allegro.h>
> #include <stdio.h>
>
> int main(void)
> {
> if(allegro_init()) return 1;
> set_color_depth(desktop_color_depth());
> set_gfx_mode(GFX_AUTODETECT_WINDOWED, 400, 300, 0, 0);
> printf("makecol(0,0,0) returns %d\n", makecol(0,0,0));
> clear_to_color(screen, makecol(0,0,0));
> return 0;
> }
> END_OF_MAIN()
>
> - ----------------------------------------
>
> This is a sample run:
>
> - ----------------------------------------
>
> lwithers@xxxxxxxxxx:~$ gcc -o test test.c -W -Wall `allegro-config
> - --libs`
> lwithers@xxxxxxxxxx:~$ ./test
> makecol(0,0,0) returns 0
> X Error of failed request: BadAccess (attempt to access private
> resource denied)
> Major opcode of failed request: 145 (MIT-SHM)
> Minor opcode of failed request: 1 (X_ShmAttach)
> Serial number of failed request: 32
> Current serial number in output stream: 51
>
yup. thats exactly what I get. There an unbusy X wizzard out there?
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net