* extracted the common code for the VESA 16-colour TModeInfo initialization

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@25711 3ad0048d-3df7-0310-abae-a5850022a9f2
compiler: check modeswitches first

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@25712 3ad0048d-3df7-0310-abae-a5850022a9f2