Action Item #569closed
09 Mar 2017
05 - Very Low
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())
- Look at this code 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.