- Thread starter
- #551
Interesting. Looks like the correct font but the size is wrong. Logs don't show anything that is different in regarding to loading fonts when the skin is changed.
All in all it must be something OnSkinChanged() in GUISettingsGUI_Skin.cs is doing or better not doing. Some stuff is not properly reset.
Regarding the D3D error. I made the following change that should prevent the issue:
Code:
// prevent MP from rendering when resource are disposed during live changing of a skin
lock (GUIGraphicsContext.RenderLock)
{
OnSkinChanged();
}
This in theory could fix the above one if it is related to some source not being available. Please do a test with the next build.
There is also one more bug, the mouse cursor does not show right away after switching skins. Only after you move the mouse, wait for cursor hiding and move it again it will be shown. That's one more imbalance of mouse cursor hiding showing inside MP. Fixed a lot of them, but a few remain. It is at least consistent at the moment.
But changing the skin does not happen that often, so out of scope for this rework. Needs to be done on the GUISetting side anyway.
There are a few more mouse cursor glitches left I could not fix yet. We need to sort them out individually one by one in separate branches.
I think one issue is there when playback starts. It briefly shows the mouse cursor. But that was the case for me on stock 1.3.0 and before all the time. It might now be consistent and shows on all playbacks, which is a good thing as this mean it is reproducible on demand now.