Add diagnostic logging to troubleshoot screenshot display issue

This commit is contained in:
2026-03-06 22:08:38 +01:00
parent 3637accaa6
commit 7cdcf19415
3 changed files with 38 additions and 30 deletions
+6 -5
View File
@@ -124,14 +124,15 @@ impl LockedSurface {
// Set background if available
if let Some(ref background) = self.background {
log::debug!(
"Applying background from self.background (size: {}x{})",
background.width(),
background.height()
let size = (background.width(), background.height());
log::info!(
"✓ Applying background from self.background: {}x{}",
size.0,
size.1
);
self.renderer.set_background(background.clone());
} else {
log::debug!("No background in self.background");
log::warn!("No background in self.background - will render solid color!");
}
self.renderer