mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
try to debug why images aren't showing up
This commit is contained in:
parent
18fc6663b2
commit
1bd82b9ea4
3 changed files with 4 additions and 5 deletions
|
|
@ -348,6 +348,7 @@ fn main() -> ! {
|
|||
}
|
||||
#[cfg(feature="ditherpunk")]
|
||||
GamObjectType::Tile(mut tile) => {
|
||||
log::info!("drawing tile {:?}", tile);
|
||||
tile.translate(canvas.clip_rect().tl);
|
||||
tile.translate(canvas.pan_offset());
|
||||
gfx.draw_tile_clipped(
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ impl ActionApi for Image {
|
|||
fn redraw(&self, _at_height: i16, modal: &Modal) {
|
||||
if self.bitmap.is_some() {
|
||||
//bm.translate(Point::new(0, at_height));
|
||||
log::info!("drawing bitmap");
|
||||
modal
|
||||
.gam
|
||||
.draw_bitmap(modal.canvas, self.bitmap.as_ref().unwrap())
|
||||
|
|
|
|||
|
|
@ -159,10 +159,7 @@ pub fn spawn_test() {
|
|||
let width: usize = info.width.try_into().unwrap();
|
||||
let img = Img::new(pixels, width);
|
||||
*/
|
||||
#[cfg(all(
|
||||
feature = "ditherpunk",
|
||||
not(any(target_os = "none", target_os = "xous"))
|
||||
))]
|
||||
#[cfg(feature = "ditherpunk")]
|
||||
{
|
||||
log::info!("testing image");
|
||||
let img = clifford();
|
||||
|
|
@ -174,7 +171,7 @@ pub fn spawn_test() {
|
|||
}
|
||||
|
||||
// https://sequelaencollection.home.blog/2d-chaotic-attractors/
|
||||
#[allow(dead_code)]
|
||||
#[cfg(feature = "ditherpunk")]
|
||||
fn clifford() -> Img {
|
||||
const SIZE: u32 = Modals::MODAL_WIDTH;
|
||||
const CENTER: f32 = (SIZE / 2) as f32;
|
||||
|
|
|
|||
Loading…
Reference in a new issue