Waitrud Weber’s blog

things and reminders for memories

windows-make: cg: pixmap fonts are displayed well or not.

I focused on "320" but the result is "DCA" and broken like slush. And, rect value is right calculated.


...
i 498 j 234 <- x 50, y 936 v -50070271
i 499 j 234 <- x 51, y 936 v 0
i 500 j 234 <- x 52, y 936 v -50070271
i 501 j 234 <- x 53, y 936 v -50070271
i 502 j 234 <- x 54, y 936 v -50070271
i 503 j 234 <- x 55, y 936 v -50070271
i 504 j 234 <- x 56, y 936 v -50070271
i 505 j 234 <- x 57, y 936 v -50070271
i 506 j 234 <- x 58, y 936 v -50070271
i 507 j 234 <- x 59, y 936 v -50070271
i 508 j 234 <- x 60, y 936 v -50070271
i 509 j 234 <- x 61, y 936 v -50070271
i 510 j 234 <- x 62, y 936 v 0
i 511 j 234 <- x 63, y 936 v -50070271
int Draw_Focus_Number (0) ends.
int Draw_Jackson_Focus_Number () ends.
press r ends.
WM_KEYUP=uMsg=257 flg_paint=1 wParam 82 lParam -1072496639
int paint_wm_006 () DRAW_PARAM 17152 start.
int first_process () starts.
int first_process () ends.
00000000000000000000000100000000
00000000000000000000001000000000
int wm_paint_006_canvas_001 () starts.
Canvas were drew and executed on the above.
fc start x 320 start y 180 font_width 320 font_height 180
nf start x 0 start y 882 font_width 640 font_height 55
i 000 start x 0 start y 882 font_width 64 font_height 55
i 001 start x 64 start y 882 font_width 64 font_height 55
i 002 start x 128 start y 882 font_width 64 font_height 55
i 003 start x 192 start y 882 font_width 64 font_height 55
i 004 start x 256 start y 882 font_width 64 font_height 55
i 005 start x 320 start y 882 font_width 64 font_height 55
i 006 start x 384 start y 882 font_width 64 font_height 55
i 007 start x 448 start y 882 font_width 64 font_height 55
i 008 start x 512 start y 882 font_width 64 font_height 55
i 009 start x 576 start y 882 font_width 64 font_height 55
small start x 448 start y 180 font_width 64 font_height 55
int wm_paint_006_canvas_001 () ends.
00000000000000000100000000000000
WM_PAINT=uMsg=15 flg_paint=1 hDC 453053697 DRAW_PARAM 17152
int paint_wm_006 () DRAW_PARAM 17152 b_Processed 2 ends.
WM_PAINT=uMsg=15 flg_paint=1 hDC 453053697 DRAW_PARAM 17152
...

*rect value

- start_x start_y width height
- 882  640 55
- - - - -
[0] 0 882 64 55
[1] 64 882 64 55
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -

 

Modification of read ppm is right, that was possible for codes mistaken.

...
width 320 height 180
int read_ppm_head ( FILE *fp, int* start_x, int* start_y, int* width, int* height) ends.
x 0 y 0 w 320 h 180 debug_ppm[4] 0
We could allocate read_ppm->ppm_canva as width 320 of image sizeof(RGBT) 4
We could initialize read_ppm->ppm_canva as width 320 and height of  image
int read_ppm_image_binary ( FILE *fp, int* start_x, int* start_y, int* width, int* height, RGBT** canvas ) starts.
last i-1 319 j-1 179 r52 g157 b157 t0
int read_ppm_image_binary ( FILE *fp, int* start_x, int* start_y, int* width, int* height, RGBT** canvas ) ends.
int read_ppm (char* filename, READ_PPM* read_ppm) ends.
WM_KEYUP=uMsg=257 flg_paint=1 wParam 85 lParam -1072300031
int paint_wm_006 () DRAW_PARAM 17152 start.
int first_process () starts.
int first_process () ends.
00000000000000000000000100000000
00000000000000000000001000000000
...

 

*

- - - - -
- - - - -
-

- - -
-

x 0 y 900 w 640 h 55

- - -
-

x 0 y 880 w 640 h 55

- - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -

 

#MinGW