mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- Changed the new default alignment keyword for drawimage from topleft to none in order to allow a potential topleft without image offsets.
This commit is contained in:
parent
658b4f7e0f
commit
ffae34c5fd
1 changed files with 12 additions and 7 deletions
|
@ -173,13 +173,18 @@ class CommandDrawImage : public SBarInfoCommandFlowControl
|
||||||
GetCoordinates(sc, fullScreenOffsets, imgx, imgy);
|
GetCoordinates(sc, fullScreenOffsets, imgx, imgy);
|
||||||
if(sc.CheckToken(','))
|
if(sc.CheckToken(','))
|
||||||
{
|
{
|
||||||
sc.MustGetToken(TK_Identifier);
|
// Use none instead of topleft in case we decide we want to use
|
||||||
if(sc.Compare("center"))
|
// alignments to remove the offset from images.
|
||||||
offset = CENTER;
|
if(!sc.CheckToken(TK_None))
|
||||||
else if(sc.Compare("centerbottom"))
|
{
|
||||||
offset = static_cast<Offset> (HMIDDLE|BOTTOM);
|
sc.MustGetToken(TK_Identifier);
|
||||||
else if(!sc.Compare("lefttop")) //That's already set
|
if(sc.Compare("center"))
|
||||||
sc.ScriptError("'%s' is not a valid alignment.", sc.String);
|
offset = CENTER;
|
||||||
|
else if(sc.Compare("centerbottom"))
|
||||||
|
offset = static_cast<Offset> (HMIDDLE|BOTTOM);
|
||||||
|
else
|
||||||
|
sc.ScriptError("'%s' is not a valid alignment.", sc.String);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(sc.CheckToken(','))
|
if(sc.CheckToken(','))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue