Several questions from NOKIA S60

xiaoxiao2021-03-06  24

1. You cannot call SYSTEM.GC () each frame, otherwise the FPS2 is severely reduced. The different models of the NOKIA S60 machine are different for TRANSLATE and SETCLIP. In the NOKIA N-GAGE QD, SetClip is calculated relative to the coordinates after Translate, and in the NOKIA 6600, 6670, SetClip is not affected by Translate, which is always only relative to the upper left corner of the screen (0, 0) Point calculation. So if you use the method of first Translate and setClip, you will have an error. In order to unify the code, do not use Translate in NOKIAS60, even if you are using, do not perform setClip between Translate. Modified Draw Schyra Function is: Public Static Void Drawsubimg (Graphics G, Image Img, Int x, Int Y, int y, int x, int y, int SX, INT SY, INT SWIDTH, INT Sheight {G.SetClip (x, y, swidth, sheight); g.drawImage (IMG, X-SX, Y-Sy, GLT); G.SetClip (0, 0, Width, height);} 3. Some Nokia models (6600, 6670, etc.) After exiting the NULL POIINTER Exception solution Do not call DESTROYAPP in the main While loop, and change to detect a flag to exit the main loop and then call DestroyAppBoolean Exit; ... if (...) {exit = true;} ...} destroyApp (TRUE) Note: NotifyDestroyed in DESTROYAPP

转载请注明原文地址:https://www.9cbs.com/read-43563.html

New Post(0)