>WinDrawPixel, which works only on 3.5 and later (3.5 New Feature Set),
>draws in the current draw window using the current foreground color.
>So, make sure that the ROM is for 3.5 or later, the current draw window
>is the one you think it is, and that the current foreground color is
>something you can see in that window.

I am using the 3.5 Debug ROM, with the following function:

void DynDrawTest ()
{
  BitmapType *bmpP;
  WinHandle   win, origWin;
  Err         error;
  RectangleType onScreenRect = {0,0,50,50};

  // making a simple b&w (depth=1) bitmap
  bmpP = BmpCreate(50, 50, 1, NULL, &error);
  if (bmpP) {
    win = WinCreateBitmapWindow(bmpP, &error);
    if (win) {
      origWin = WinGetDrawWindow();
      WinSetDrawWindow(win);
      WinDrawLine (0,0,49,49);
      WinDrawLine (0,49,49,0);
      WinDrawPixel (5,1);
      WinDrawPixel (10,1);
      WinDrawPixel (15,1);
      WinDrawPixel (45, 1);
      WinDrawChars ("Hi", 2, 10, 10);

      // restore the draw window
      WinSetDrawWindow (origWin);
      // copy the bitmap to the screen
      // note: pixels and chars didn't show properly in my POSE.
      WinDrawBitmap(bmpP, 50, 50);
     }
   }
}

This function will draw the lines ... a black blob for the characters .. and 
nothing for the pixels.

Is it really just me? Or am I missing something? As I said earlier, this 
function draws everything on the device.

Ellen




_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to