mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Fix data section placement for pre-compiled textures in C++
Place pre-rendered textures into read-only data, instead of the data
section.
Amends 3db168d03d
This commit is contained in:
parent
2acf687cf3
commit
21d44e3a31
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ pub fn generate(doc: &Document) -> impl std::fmt::Display {
|
|||
let data = data.iter().map(ToString::to_string).join(", ");
|
||||
let data_name = format!("slint_embedded_resource_{}_data", er.id);
|
||||
file.declarations.push(Declaration::Var(Var {
|
||||
ty: "inline uint8_t".into(),
|
||||
ty: "inline const uint8_t".into(),
|
||||
name: data_name.clone(),
|
||||
array_size: Some(count),
|
||||
init: Some(format!("{{ {data} }}")),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue