lol
This commit is contained in:
parent
01dcbbcd53
commit
f1e5960484
1 changed files with 2 additions and 5 deletions
|
@ -126,11 +126,8 @@ where
|
|||
R: Renderer<ColourFormat>,
|
||||
{
|
||||
pub fn new(cgb: bool, window: R, tile_window_renderer: Option<R>) -> Self {
|
||||
let tile_window = if let Some(mut tile_window_renderer) = tile_window_renderer {
|
||||
Some(TileWindow::new(tile_window_renderer, cgb))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
let tile_window = tile_window_renderer
|
||||
.map(|tile_window_renderer| TileWindow::new(tile_window_renderer, cgb));
|
||||
let buffer = vec![ColourInner::Error.rgb_bytes(None, false).into(); WIDTH * HEIGHT];
|
||||
|
||||
Self {
|
||||
|
|
Loading…
Add table
Reference in a new issue