Setting TBitmap.Monochrome does not work correctly
Original Reporter info from Mantis: u-boot
-
Reporter name:
Original Reporter info from Mantis: u-boot
- Reporter name:
Description:
Example shapedcontrols does not work.
It can be compiled but trying to run this example fails.
replacing
ABitmap.Monochrome := True;
with
ABitmap.PixelFormat:=pf1bit;
makes the example work but it does not repair the ultimate cause so i did not make a patch this way. Additional i don't know if this workaround would be ok for other widgetsets.
Steps to reproduce:
compile and run the example named shapedcontrols.
Additional information:
gdb-output:
Starting program: /mytestdirectory/shapedcontrols/project1
[Thread debugging using libthread_db enabled]
The program 'project1' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 709 error_code 8 request_code 142 minor_code 2)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Program exited with code 01.
(gdb)
Mantis conversion info:
- Mantis ID: 18911
- OS: Ubuntu
- OS Build: 9.10
- Build: 29796
- Platform: i386
- Version: 0.9.31 (SVN)
- Monitored by: » u-boot (u-boot)
- Target version: 1.0.0
- LazTarget: 1.0