mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
7e774f99df
commit
5a88a9f31f
8 files changed
+78
-22
No files matched your search
@@ -202,6 +202,9 @@ func (e *Editor) retainDocumentResources(source *Editor) {
|
||||
maps.Copy(e.fonts, source.fonts)
|
||||
maps.Copy(e.images, source.images)
|
||||
maps.Copy(e.resourceID, source.resourceID)
|
||||
if sameBackend(e.backends.FontResources, source.backends.FontResources) {
|
||||
e.fontRegistration = source.fontRegistration
|
||||
}
|
||||
e.maxID = max(e.maxID, source.maxID)
|
||||
e.fontRenderer, e.fontMetrics = source.fontRenderer, source.fontMetrics
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user