Changeset 32848
- Timestamp:
- Dec 2, 2011, 8:05:24 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20111122/Ohana/src/kapa2
- Files:
-
- 4 edited
-
include/prototypes.h (modified) (1 diff)
-
src/PNGit.c (modified) (2 diffs)
-
src/Sections.c (modified) (1 diff)
-
src/bDrawIt.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/kapa2/include/prototypes.h
r32695 r32848 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)); -
branches/eam_branches/ipp-20111122/Ohana/src/kapa2/src/PNGit.c
r31665 r32848 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 } -
branches/eam_branches/ipp-20111122/Ohana/src/kapa2/src/Sections.c
r32695 r32848 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 -
branches/eam_branches/ipp-20111122/Ohana/src/kapa2/src/bDrawIt.c
r32695 r32848 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
Note:
See TracChangeset
for help on using the changeset viewer.
