temporarily allow more graphics server connections

this is for early testing and debug -- there's a note to
revert this in the console log once we're done with that.
This commit is contained in:
bunnie 2024-05-23 14:51:11 +08:00
parent ab9b63c7f6
commit 34cfc7db5b

View file

@ -182,7 +182,13 @@ fn wrapped_main(main_thread_token: backend::MainThreadToken) -> ! {
#[cfg(not(target_os = "xous"))]
let sid = xns.register_name(api::SERVER_NAME_GFX, Some(1)).expect("can't register server");
#[cfg(feature = "cramium-soc")]
let sid = xns.register_name(api::SERVER_NAME_GFX, Some(1)).expect("can't register server");
{
log::warn!(
"Remember to notch the expected connections for graphics_server down to 1 after initial testing!"
);
// 2 for now -- one for GAM, one for testing
let sid = xns.register_name(api::SERVER_NAME_GFX, Some(2)).expect("can't register server");
}
let screen_clip = Rectangle::new(Point::new(0, 0), display.screen_size());