mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-22 03:23:25 +02:00
Update to v093r05 release.
byuu says: Library concept has been refined as per the general forum discussion.
This commit is contained in:
@@ -4,9 +4,9 @@ void OpenGLProgram::bind(OpenGL* instance, const Markup::Node& node, const strin
|
||||
modulo = glrModulo(node["modulo"].integer());
|
||||
|
||||
string w = node["width"].text(), h = node["height"].text();
|
||||
if(w.endswith("%")) relativeWidth = real(w.rtrim<1>("%")) / 100.0;
|
||||
if(w.endsWith("%")) relativeWidth = real(w.rtrim<1>("%")) / 100.0;
|
||||
else absoluteWidth = decimal(w);
|
||||
if(h.endswith("%")) relativeHeight = real(h.rtrim<1>("%")) / 100.0;
|
||||
if(h.endsWith("%")) relativeHeight = real(h.rtrim<1>("%")) / 100.0;
|
||||
else absoluteHeight = decimal(h);
|
||||
|
||||
if(node.name != "program") return;
|
||||
|
Reference in New Issue
Block a user