Changeset 33650
- Timestamp:
- Apr 1, 2012, 2:30:36 PM (14 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 5 edited
-
kapa2/include/prototypes.h (modified) (1 diff)
-
kapa2/src/PNGit.c (modified) (2 diffs)
-
kapa2/src/Sections.c (modified) (1 diff)
-
kapa2/src/bDrawIt.c (modified) (1 diff)
-
libkapa/src/bDrawFuncs.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kapa2/include/prototypes.h
r32695 r33650 99 99 int ListSection PROTO((int sock)); 100 100 void SetSectionSizes PROTO((Section *section)); 101 int SectionMinBoundary PROTO((Graphic *graphic)); 101 102 102 103 KapaGraphWidget *InitGraph PROTO((void)); -
trunk/Ohana/src/kapa2/src/PNGit.c
r31665 r33650 22 22 23 23 graphic = GetGraphic(); 24 25 // limit the png window to the min needed to contain the active graphic regions 26 SectionMinBoundary (graphic); 24 27 25 28 f = fopen (filename, "w"); … … 81 84 /* see docs for write-row-callback to provide progress info */ 82 85 if (haveImage) { 83 png_set_IHDR (png_ptr, info_ptr, graphic->dx , graphic->dy, 8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);86 png_set_IHDR (png_ptr, info_ptr, graphic->dxwin, graphic->dywin, 8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT); 84 87 png_set_sRGB (png_ptr, info_ptr, PNG_sRGB_INTENT_ABSOLUTE); 85 88 } else { 86 png_set_IHDR (png_ptr, info_ptr, graphic->dx , graphic->dy, 8, PNG_COLOR_TYPE_PALETTE, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);89 png_set_IHDR (png_ptr, info_ptr, graphic->dxwin, graphic->dywin, 8, PNG_COLOR_TYPE_PALETTE, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT); 87 90 png_set_PLTE (png_ptr, info_ptr, palette, Npalette); 88 91 } -
trunk/Ohana/src/kapa2/src/Sections.c
r32695 r33650 245 245 int Xe = 0; 246 246 int Ye = 0; 247 248 # if (1) 249 graphic->xwin = 0; 250 graphic->ywin = 0; 251 graphic->dxwin = graphic->dx; 252 graphic->dywin = graphic->dy; 253 return TRUE; 254 # endif 247 255 248 256 // the boundary for a single section should probably be adjusted depending on the -
trunk/Ohana/src/kapa2/src/bDrawIt.c
r32695 r33650 12 12 13 13 black = KapaColorByName ("black"); 14 15 // SectionMinBoundary (graphic);16 14 17 15 // if we want to trim, we'll need to carry about the start in graphic coords and -
trunk/Ohana/src/libkapa/src/bDrawFuncs.c
r31663 r33650 1 1 # include <kapa_internal.h> 2 # define myAssert(LOGIC,MSG) { if (!(LOGIC)) { fprintf (stderr, "%s\n", MSG); abort (); } }3 2 4 3 // move these to the bDrawBuffer type
Note:
See TracChangeset
for help on using the changeset viewer.
