From 4264666130da1bb38bfce388a7e44dda9450fa79 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Sat, 30 Jun 2018 17:09:29 -0300 Subject: [PATCH] Adds _SMOOTH function to return current fullscreen antialiasing setting. Returns true (-1) if enabled. --- internal/c/libqb.cpp | 3 +++ internal/c/qbx.cpp | 1 + source/subs_functions/subs_functions.bas | 8 ++++++++ 3 files changed, 12 insertions(+) diff --git a/internal/c/libqb.cpp b/internal/c/libqb.cpp index 64b1a8a6b..0de9943cf 100644 --- a/internal/c/libqb.cpp +++ b/internal/c/libqb.cpp @@ -22299,6 +22299,9 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){ return full_screen; } + int32 func__fullscreensmooth(){ + return -fullscreen_smooth; + } void chain_restorescreenstate(int32 i){ static int32 i32,i32b,i32c,x,x2; diff --git a/internal/c/qbx.cpp b/internal/c/qbx.cpp index d4fa8b2b9..e7cfbb6bf 100644 --- a/internal/c/qbx.cpp +++ b/internal/c/qbx.cpp @@ -205,6 +205,7 @@ void chain_savescreenstate(int32); extern void sub__fullscreen(int32 method,int32 passed); extern void sub__allowfullscreen(int32 method,int32 smooth); extern int32 func__fullscreen(); +extern int32 func__fullscreensmooth(); extern void sub__clipboard(qbs*); extern qbs *func__clipboard(); extern int32 func__clipboardimage(); diff --git a/source/subs_functions/subs_functions.bas b/source/subs_functions/subs_functions.bas index 1668c0933..91094fa9e 100644 --- a/source/subs_functions/subs_functions.bas +++ b/source/subs_functions/subs_functions.bas @@ -689,6 +689,14 @@ id.ret = LONGTYPE - ISPOINTER id.NoCloud = 1 regid +clearid +id.n = "_SMOOTH" +id.subfunc = 1 +id.callname = "func__fullscreensmooth" +id.ret = LONGTYPE - ISPOINTER +id.NoCloud = 1 +regid + clearid id.n = "_WINDOWHASFOCUS" id.subfunc = 1