lib/gamnit: add a non-null display argument to frame_core