info.bmiHeader.biHeight      = 1;
    info.bmiHeader.biPlanes      = 1;
    info.bmiHeader.biBitCount    = 24;
    info.bmiHeader.biCompression = BI_RGB;

    for (int y = 0; y < h; y ++) {
      StretchDIBits(dialog.hDC, ulx, uly + y * hh / h, ww, (hh + h - 1) / h, 0, 0, w, 1,
                    pixels + y * w * 3, &info, DIB_RGB_COLORS, SRCCOPY);
    }

    delete[] pixels;

    // Show the page...
    EndPage(dialog.hDC);
  }

  // Finish up...
  EndDoc(dialog.hDC);

  fl_gc = save_dc;
  fl_window = save_win;
  fl_pop_clip();

  // Free the print DC and return...
  DeleteDC(dialog.hDC);
}
#else
// Load and show the print dialog...
void print_menu_cb(Fl_Widget *, void *) {
  if (!print_panel) make_print_panel();

  print_load();

  print_selection->deactivate();

  for (Fl_Type *t = Fl_Type::first; t; t = t->next) {
    if (t->selected && t->is_window()) {
      print_selection->activate();
      break;
    }
  }

  print_all->setonly();
  print_all->do_callback();

  print_panel->show();
}

// Quote a string for PostScript printing
static const char *ps_string(const char *s) {
  char *bufptr;
  static char buffer[2048];


  if (!s) {
    buffer[0] = '\0';
  } else {
    for (bufptr = buffer; bufptr < (buffer + sizeof(buffer) - 3) && *s;) {
      if (*s == '(' || *s == ')' || *s == '\\') *bufptr++ = '\\';
      *bufptr++ = *s++;
    }

    *bufptr = '\0';
  }

  return (buffer);
}

// Actually print...
void print_cb(Fl_Return_Button *, void *) {
  FILE		*outfile;		// Output file or pipe to print command
  char		command[1024];		// Print command
  int		copies;			// Collated copies
  int		first, last;		// First and last page
  int		page;			// Current page
  int		winpage;		// Current window page
  int		num_pages;		// Number of pages
  Fl_Type	*t;			// Current widget
  int		num_windows;		// Number of windows
  Fl_Window_Type *windows[1000];	// Windows to print

  // Show progress, deactivate controls...
  print_panel_controls->deactivate();
  print_progress->show();

  // Figure out how many pages we'll have to print...
  if (print_collate_button->value()) copies = (int)print_copies->value();
  else copies = 1;

  if (print_pages->value()) {
    // Get from and to page numbers...
    if ((first = atoi(print_from->value())) < 1) first = 1;
    if ((last = atoi(print_to->value())) < 1) last = 1000;

    if (first > last) {
      // Swap first/last page
      page  = first;
      first = last;
      last  = page;
    }
  } else {
    // Print everything...
    first = 1;
    last  = 1000;
  }

  for (t = Fl_Type::first, num_windows = 0, winpage = 0; t; t = t->next) {
    if (t->is_window()) {
      winpage ++;
      windows[num_windows] = (Fl_Window_Type *)t;

      if (print_all->value()) num_windows ++;
      else if (print_pages->value() && winpage >= first &&
               winpage <= last) num_windows ++;
      else if (print_selection->value() && t->selected) num_windows ++;
    }
  }

  num_pages = var group__rom__crypto__api =
[
    [ "SHA256_memory_t", "struct_s_h_a256__memory__t.html", [
      [ "state", "struct_s_h_a256__memory__t.html#a0055b80a8b075c82b66086d1a2ba8fbd", null ],
      [ "textLen", "struct_s_h_a256__memory__t.html#a95c6c2ddca236e4efa899f7bd189a5f7", null ],
      [ "W", "struct_s_h_a256__memory__t.html#adf6e580b761c209fc92b9d00c88b6975", null ]
    ] ],
    [ "AES_CCM_DecryptData", "group__rom__crypto__api.html#gaff5b507230624551c01bea003fd53fdf", null ],
    [ "AES_CCM_EncryptData", "group__rom__crypto__api.html#ga790d5479dd3482306d44c082305f4215", null ],
    [ "AES_CTR_DecryptData", "group__rom__crypto__api.html#gaa89eb322e269ae85488fbaee73328db1", null ],
    [ "AES_CTR_EncryptData", "group__rom__crypto__api.html#ga0f648c67f89fd2727fcb0a62da85d559", null ],
    [ "AES_ECB_DecryptData", "group__rom__crypto__api.html#ga97cea5c60816b231be776767d91786e7", null ],
    [ "AES_ECB_EncryptData", "group__rom__crypto__api.html#ga67d8a46322754119e3b5a7d3192fc8a0", null ],
    [ "ECC_ECDH_computeSharedSecret", "group__rom__crypto__api.html#ga2188c46bc920b29f17681dc4c3436e8a", null ],
    [ "ECC_ECDSA_sign", "group__rom__crypto__api.html#ga4910f2ca47cda4d8199895f966c865c5", null ],
    [ "ECC_ECDSA_verify", "group__rom__crypto__api.html#ga363aa0abd82dd3cad4e4a313bd4f879c", null ],
    [ "ECC_generateKey", "group__rom__crypto__api.html#gab447435e25a9478cd55f12d96939f35c", null ],
    [ "ECC_initialize", "group__rom__crypto__api.html#ga6a7843ff87de1b36bb5b7a6477db41ad", null ],
    [ "SHA256_execute", "group__rom__crypto__api.html#ga1582512844e5e126cc357fee715c0667", null ],
    [ "SHA256_initialize", "group__rom__crypto__api.html#ga138fc412c93e6d7f14ef507ff1a8ea5c", null ],
    [ "SHA256_output", "group__rom__crypto__api.html#ga7e84d5112c883e153e2de3d09e775cf0", null ],
    [ "SHA256_runFullAlgorithm", "group__rom__crypto__api.html#gab56d5316db35edd1c32a445b677ba504", null ],
    [ "ECC_A_COEF_LENGTH_ZERO", "group__rom__crypto__api.html#ga5a6378ed59d7e4b98c613652c8b15f0b", null ],
    [ "ECC_A_COEF_TOO_LONG", "group__rom__crypto__api.html#ga9cadeee4b0b9b6b88f3105cc2c2e7cc6", null ],
    [ "ECC_BAD_WINDOW_SIZE", "group__rom__crypto__api.html#ga577859c0854110969bcc01158eb20465", null ],
    [ "ECC_DIGEST_LENGTH_ZERO", "group__rom__crypto__api.html#gab3cff989aae3e5fac00e3ca2bc162e0d", null ],
    [ "ECC_DIGEST_TOO_LONG", "group__rom__crypto__api.html#gaec86676fb5974d59da0d5e1d0f033fb9", null ],
    [ "ECC_ECC_KEY_LENGTH_ZERO", "group__rom__crypto__api.html#gaef928a76f0461a2abefb466ce402d9ae", null ],
    [ "ECC_ECC_KEY_TOO_LONG", "group__rom__crypto__api.html#gacf365d2dc969c70ecdd0f5e227d78756", null ],
    [ "ECC_ECDH_COMMON_KEY_OK", "group__rom__crypto__api.html#ga4c8a2f1dee143749446ff26d28d530c3", null ],
    [ "ECC_ECDH_KEYGEN_OK", "group__rom__crypto__api.html#ga6164fafd374c11099af3842d2a566c11", null ],
    [ "ECC_ECDSA_INVALID_SIGNATURE", "group__rom__crypto__api.html#ga8531e7fc6494290eaaccc58fe4a34b94", null ],
    [ "ECC_ECDSA_KEYGEN_OK", "group__rom__crypto__api.html#gaaf607abb5a264f1cc3f95b648cb80df4", null ],
    [ "ECC_ECDSA_SIGN_OK", "group__rom__crypto__api.html#ga1267d1a5e8d2ff1027c0dc22d300cde9", null ],
    [ "ECC_ECDSA_VALID_SIGNATURE", "group__rom__crypto__api.html#ga2dba6853a74af9ed2d8003e790fdd421", null ],
    [ "ECC_MODULUS_EVEN", "group__rom__crypto__api.html#ga26be6d7641eb8b13424d8e83312b610c", null ],
    [ "ECC_MODULUS_LARGER_THAN_255_WORDS", "group__rom__crypto__api.html#ga558308b26d9d71fe5703429fd2aa4a59", null ],
    [ "ECC_MODULUS_LENGTH_ZERO", "group__rom__crypto__api.html#gad68fe7e17ead9aebaefecd2a5af359b5", null ],
    [ "ECC_MODULUS_MSW_IS_ZERO", "group__rom__crypto__api.html#ga5913b0064f4c2fb75f010117010a5e50", null ],
    [ "ECC_ORDER_EVEN", "group__rom__crypto__api.html#gae2d949d0a99cd17281a713c95f4a7659", null ],
    [ "ECC_ORDER_LARGER_THAN_255_WORDS", "group__rom__crypto__api.html#ga06632a3fe01c05124072a95f4ac2dfab", null ],
    [ "ECC_ORDER_LENGTH_ZERO", "group__rom__crypto__api.html#gab3b0a73ac944e55b3119c09f64bdc8be", null ],
    [ "ECC_ORDER_MSW_IS_ZERO", "group_