// a (~alpha) transparency, 0x00==solid .. 0xff==transparent
void VFrame::set_pixel_color(int rgb, int a)
{
- pixel_rgb = (~a<<24) | (rgb&0xffffff);
+ pixel_rgb = (~(unsigned int)a<<24) | (rgb&0xffffff);
int ir = 0xff & (pixel_rgb >> 16);
int ig = 0xff & (pixel_rgb >> 8);
int ib = 0xff & (pixel_rgb >> 0);
YUV::yuv.rgb_to_yuv_8(ir, ig, ib);
- pixel_yuv = (~a<<24) | (ir<<16) | (ig<<8) | (ib<<0);
+ pixel_yuv = (~(unsigned int)a<<24) | (ir<<16) | (ig<<8) | (ib<<0);
}
void VFrame::set_stiple(int mask)
--- /dev/null
+--- /dev/null 2021-05-22 06:52:04.572000000 +0300
++++ libbthread-master/Makefile 2021-05-23 15:06:41.348461769 +0300
+@@ -0,0 +1,6 @@
++all:
++ mv pt-test.c pt-test
++ cat `ls *.c` > just-pt.c
++ g++ -c -o jpt.o just-pt.c -I.
++ ar crs jpt.a jpt.o
++