mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
debugging for dynamic resize issue
This commit is contained in:
parent
64f008b4fa
commit
0830513ef1
1 changed files with 6 additions and 0 deletions
|
|
@ -537,6 +537,7 @@ fn main() -> ! {
|
||||||
Opcode::HandleDynamicNotificationKeyhit.to_u32().unwrap(),
|
Opcode::HandleDynamicNotificationKeyhit.to_u32().unwrap(),
|
||||||
);
|
);
|
||||||
gutter.set_manual_dismiss(false);
|
gutter.set_manual_dismiss(false);
|
||||||
|
// renderer_modal.gam.set_debug_level(log::LevelFilter::Debug);
|
||||||
renderer_modal.modify(
|
renderer_modal.modify(
|
||||||
Some(ActionType::Notification(gutter)),
|
Some(ActionType::Notification(gutter)),
|
||||||
Some(&top_text),
|
Some(&top_text),
|
||||||
|
|
@ -570,6 +571,8 @@ fn main() -> ! {
|
||||||
}
|
}
|
||||||
Some(Opcode::DoUpdateDynamicNotification) => match op {
|
Some(Opcode::DoUpdateDynamicNotification) => match op {
|
||||||
RendererState::RunDynamicNotification(config) => {
|
RendererState::RunDynamicNotification(config) => {
|
||||||
|
//log::set_max_level(log::LevelFilter::Trace);
|
||||||
|
//renderer_modal.gam.set_debug_level(log::LevelFilter::Debug);
|
||||||
let mut top_text = String::new();
|
let mut top_text = String::new();
|
||||||
if let Some(title) = config.title {
|
if let Some(title) = config.title {
|
||||||
top_text.push_str(title.as_str().unwrap());
|
top_text.push_str(title.as_str().unwrap());
|
||||||
|
|
@ -586,8 +589,11 @@ fn main() -> ! {
|
||||||
config.text.is_none(),
|
config.text.is_none(),
|
||||||
None,
|
None,
|
||||||
);
|
);
|
||||||
|
log::debug!("UPDATE_DYN gid: {:?}", renderer_modal.canvas);
|
||||||
renderer_modal.redraw();
|
renderer_modal.redraw();
|
||||||
xous::yield_slice();
|
xous::yield_slice();
|
||||||
|
//log::set_max_level(log::LevelFilter::Info);
|
||||||
|
//renderer_modal.gam.set_debug_level(log::LevelFilter::Info);
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
log::error!("UX return opcode does not match our current operation in flight. This is a serious internal error.");
|
log::error!("UX return opcode does not match our current operation in flight. This is a serious internal error.");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue