calendar: Fix year location
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ impl Calendar {
|
|||||||
)?;
|
)?;
|
||||||
if time.year() != orig.year() {
|
if time.year() != orig.year() {
|
||||||
self.year_cache.draw_text(
|
self.year_cache.draw_text(
|
||||||
&mut buf.subdimensions((320, 0, 64, 32))?,
|
&mut buf.subdimensions((320, 0, 48, 32))?,
|
||||||
background_color,
|
background_color,
|
||||||
&Color::new(0.8, 0.8, 0.8, 1.0),
|
&Color::new(0.8, 0.8, 0.8, 1.0),
|
||||||
&format!("{:}", time.year()),
|
&format!("{:}", time.year()),
|
||||||
|
|||||||
Reference in New Issue
Block a user