-
Notifications
You must be signed in to change notification settings - Fork 385
Description
My app uses density independent pixel ratio to support high-density displays, I'm using the latest release, 4.3.
I'm loading a document and clone a subtree that contains images. These cloned images come out too small when using a dp ratio > 1 because they don't have an owner document when LoadTexture runs, can't find a context and default to a dp ratio of 1. The same happens with manually created elements (Rml::Factory::InstanceElement in my case), although I haven't looked closely at those yet.
The cloning happens right after loading the document, InstanceElement is called in an instancer for custom elements that are loaded with the document, before any Update calls. When they get to LoadTexture they should already be firmly attached to the document, so I'm not sure what the actual issue is.