源程序是根据源代码改写的mginit,当库升级到1.6.8之后,发现以下需要修改的地方:
1.不再需要调用ServerStartup函数,而在1.3.3调用与否都正常。
2.不再使用全局变量g_rcExcluded(表示服务器使用的范围),而使用g_rcScr(屏幕范围)替代
3.编译参数需要手动加上-ljpeg -lpng -lm,而在1.3.3中是不需要加的
4.以上三条改变都可以接受,下面的变化非常不方便,在1.3.3中可以根据目标板子的屏幕设置分辨率为240x320,而1.6.8中必须设置为PC的实际分辩率如800x600,否则为出错提示:
NEWGAL: Set video mode failure.
Error in step 4: Can not initialize graphics engine!
FBCON NEWGAL Engine: Couldn't set console screen info
Error in step 4: Can not initialize graphics engine!
FBCON NEWGAL Engine: Couldn't set console screen info
注:库编译参数都是#./configure --enable-lite;make;make install