| 1 | Summary: example/sdl/blue_font.pir is inconsistent in colors, rarely blue. Patch attached |
|---|
| 2 | Reported by: richard@rusrating.ru |
|---|
| 3 | --- |
|---|
| 4 | <parrot>/example/sdl/blue_font.pir is rarely blue and inconsistent in color. |
|---|
| 5 | The problem lies in Font.pir RenderTEXT_Solid expects an integer color, not a pmc |
|---|
| 6 | Changing to an integer requires a change in the expected interface and hence SDL.pir |
|---|
| 7 | Changing SDL.pir to the correct signature requires a change in the call_lists, hence a change in <parrot>/gen/call_list/misc.in |
|---|
| 8 | RenderTEXT_Solid does not handle Cyrillic characters so a change to RenderUTF8_Solid is suggested in Font.pir |
|---|
| 9 | The RenderXXXX_Solid functions appear to expect the color parameter to be packed as rgb rather than bgr as numified by Color.pir |
|---|
| 10 | Hence the packing is done directly in Font.dir. Why this is the case, I havent investigated |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | --- |
|---|
| 14 | osname= linux |
|---|
| 15 | osvers= 2.6.24-19-server |
|---|
| 16 | arch= i486-linux-gnu-thread-multi |
|---|
| 17 | cc= cc |
|---|
| 18 | --- |
|---|
| 19 | Flags: |
|---|
| 20 | category=library |
|---|
| 21 | severity=high |
|---|
| 22 | ack=no |
|---|
| 23 | --- |
|---|
| 24 | Summary of my parrot 1.3.0 (r39599) configuration: |
|---|
| 25 | configdate='Sun Jun 28 09:42:46 2009 GMT' |
|---|
| 26 | Platform: |
|---|
| 27 | osname=linux, archname=i486-linux-gnu-thread-multi |
|---|
| 28 | jitcapable=1, jitarchname=i386-linux, |
|---|
| 29 | jitosname=LINUX, jitcpuarch=i386 |
|---|
| 30 | execcapable=1 |
|---|
| 31 | perl=/usr/bin/perl |
|---|
| 32 | Compiler: |
|---|
| 33 | cc='cc', ccflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED -DHASATTRIBUTE_WARN_UNUSED_RESULT -falign-functions=16 -fvisibility=hidden -funit-at-a-time -maccumulate-outgoing-args -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wdisabled-optimization -Wendif-labels -Wextra -Wformat -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Wlogical-op -Wmissing-braces -Wmissing-field-initializers -Wno-missing-format-attribute -Wmissing-include-dirs -Wpacked -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point -Wno-shadow -Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef -Wunknown-pragmas -Wno-unused -Wvariadic-macros -Wwrite-strings -Wbad-function-cast -Wc++-compat -Wdeclaration-after-statement -Werror=declaration-after-statement -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull -DHAS_GETTEXT', |
|---|
| 34 | Linker and Libraries: |
|---|
| 35 | ld='cc', ldflags=' -L/usr/local/lib', |
|---|
| 36 | cc_ldflags='', |
|---|
| 37 | libs='-ldl -lm -lpthread -lcrypt ' |
|---|
| 38 | Dynamic Linking: |
|---|
| 39 | share_ext='.so', ld_share_flags='-shared -O2 -g -L/usr/local/lib -fPIC', |
|---|
| 40 | load_ext='.so', ld_load_flags='-shared -O2 -g -L/usr/local/lib -fPIC' |
|---|
| 41 | Types: |
|---|
| 42 | iv=long, intvalsize=4, intsize=4, opcode_t=long, opcode_t_size=4, |
|---|
| 43 | ptrsize=4, ptr_alignment=1 byteorder=1234, |
|---|
| 44 | nv=double, numvalsize=8, doublesize=8, longdoublesize=12 |
|---|
| 45 | |
|---|
| 46 | --- |
|---|
| 47 | Environment: |
|---|
| 48 | HOME =/home/richard |
|---|
| 49 | LANG =en_US.UTF-8 |
|---|
| 50 | LANGUAGE (unset) |
|---|
| 51 | LD_LIBRARY_PATH (unset) |
|---|
| 52 | LOGDIR (unset) |
|---|
| 53 | PATH =/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games |
|---|
| 54 | PERL6LIB =./lib |
|---|
| 55 | SHELL =/bin/bash |
|---|