Beispiel #1
0
void GIFClearPic(WebPPicture* const pic, const GIFFrameRect* const rect) {
  if (rect != NULL) {
    ClearRectangle(pic, rect->x_offset, rect->y_offset,
                   rect->width, rect->height);
  } else {
    ClearRectangle(pic, 0, 0, pic->width, pic->height);
  }
}
Beispiel #2
0
static void WebPUtilClearPic(WebPPicture* const picture,
                             const FrameRect* const rect) {
  if (rect != NULL) {
    ClearRectangle(picture, rect->x_offset_, rect->y_offset_,
                   rect->width_, rect->height_);
  } else {
    ClearRectangle(picture, 0, 0, picture->width, picture->height);
  }
}
void ClearRectangleOnBackground(Bitmap *bitmap, int x, int y,
				int width, int height)
{
  if (DrawingOnBackground(x, y))
    BlitBitmap(gfx.background_bitmap, bitmap, x, y, width, height, x, y);
  else
    ClearRectangle(bitmap, x, y, width, height);
}
Beispiel #4
0
static void MainFormDrawCurrentDisplayInfo(AppContext* appContext)
{
    WinPushDrawState();
    SetBackColorRGB(appContext, WHITE_Packed);
    ClearRectangle(0, 0, appContext->screenWidth, appContext->screenHeight - FRM_RSV_H - 1);
    DrawDisplayInfo(appContext->currDispInfo, appContext->firstDispLine, 0, 0, appContext->dispLinesCount);
    SetScrollbarState(appContext->currDispInfo, appContext->dispLinesCount, appContext->firstDispLine);
    WinPopDrawState();
}
Beispiel #5
0
static void MainFormDrawLookupStatus(AppContext* appContext, FormType* form)
{
    WinPushDrawState();
    SetGlobalBackColor(appContext);
    UInt16 statusBarStartY=appContext->screenHeight-lookupStatusBarHeight;
    ClearRectangle(0, statusBarStartY, appContext->screenWidth, lookupStatusBarHeight);
    WinDrawLine(0, statusBarStartY-3, appContext->screenWidth, statusBarStartY-3);
    const char* text=GetConnectionStatusText(appContext);
    Assert(text);
    UInt16 textLen=StrLen(text);    
    WinDrawTruncChars(text, textLen, 1, statusBarStartY+1, appContext->screenWidth - 14);
    WinPopDrawState();
}
Beispiel #6
0
static void MainFormDisplayAbout(AppContext* appContext)
{
    UInt16 currentY=0;
    WinPushDrawState();
    SetGlobalBackColor(appContext);
    ClearRectangle(0, currentY, appContext->screenWidth, appContext->screenHeight - currentY - FRM_RSV_H - 1);
    HideScrollbar();
    
    currentY+=7;
    FntSetFont(largeFont);
    DrawCenteredString(appContext, "ArsLexis iNoah", currentY);
    currentY+=16;


#ifdef INTERNAL_BUILD
    DrawCenteredString(appContext, "Ver 1.1 (internal)", currentY);
#else
 #ifdef DEBUG
    DrawCenteredString(appContext, "Ver 1.1 (debug)", currentY);
 #else
    DrawCenteredString(appContext, "Ver 1.1", currentY);
 #endif // DEBUG
#endif // INTERNAL_BUILD

    currentY+=20;
    
    FntSetFont(boldFont);
    DrawCenteredString(appContext, "Copyright \251 ArsLexis", currentY);
    currentY+=24;

    FntSetFont(largeFont);
    DrawCenteredString(appContext, "http://www.arslexis.com", currentY);
    currentY+=24;

    FntSetFont(stdFont);
#ifdef UNLOCKED
    DrawCenteredString(appContext, "Registered PalmSource version", currentY);
#else
    if (0==StrLen(appContext->prefs.regCode))
    {
        DrawCenteredString(appContext, "Unregistered", currentY);
        currentY+=14;
#ifdef  DEMO_HANDANGO
        DrawCenteredString(appContext, "Buy at: www.handango.com/purchase", currentY);
        currentY+=14;
        DrawCenteredString(appContext, "        Product ID: 101763", currentY);
#else
  #ifdef DEMO_PALMGEAR
        DrawCenteredString(appContext, "Buy at: www.palmgear.com?53831", currentY);
  #else
        DrawCenteredString(appContext, "Buy at: www.arslexis.com/buy.html", currentY);
  #endif
#endif
    }
    else
    {
        DrawCenteredString(appContext, "Registered version", currentY);
    }
#endif  // UNLOCKED
    WinPopDrawState();
}
void CSurface::ClearRectangle(TRect aRect, TInt aRed, TInt aGreen, TInt aBlue)
{
   ClearRectangle( aRect, TRgb(aRed,aGreen,aBlue) );
}