Action Item #569

Updated by Hammel over 1 year ago

Now that I know more about scaling in Cairo I can do some needed updates to PiClock.

# Switch to gdk_pixbuf to load the image, thereby supporting more file types (see launcher: git diff -r c71a4a45 -r 7be3c7f6, in do_drawing())
# Use libpibox to get screen dimensions (same, but in createwindow() - see call to piboxGetDisplayWidth())
# Scale the images to fit the window using gdk_pixbuf scaling function (also in do_drawing()) (see launcher)
# Look at "this code":,d.amc&cad=rja to see how to create a shadow from an image. This can be used to draw shadows under the hands, though getting the light direction correct could be difficult.

The scaling will make the clock fit on any display.