"Rodolfo García Peñas (kix)" <[email protected]> escribió:

Hi,

Is possible remove the context argument in the RLoad functions for
xpm, PNG and jpeg ?

The context variable contains the specific WScreen, and is a problem
for example with XRandR when switching the screen. IMO, the images
should be screen independent.

I have some patches to solve these problems.

One question more (please, don't reply all together because my inbox
is full ;-) ).

The RContext struct includes the flag "optimize_for_speed". This flag
is only used in JPEG images, if is not set the jpeg image load process
includes the alpha channel, but if is set, the alpha channel is not
loaded.

To set the variable is used this code (context.c):

506         ptr = mygetenv("WRASTER_OPTIMIZE_FOR_SPEED", screen_n);
507         if (ptr) {
508                 context->flags.optimize_for_speed = 1;
509         } else {
510                 context->flags.optimize_for_speed = 0;
511         }

IMO this flag is old. The flag is only used in jpeg images, and with
the current processors, the alpha channel should be included always. I
have a patch to remove this flag, what do you think?

kix

Rodolfo García Peñas (kix)
http://www.kix.es/


--
To unsubscribe, send mail to [email protected].

Reply via email to