diff options
Diffstat (limited to 'src/createcalls.cpp')
-rw-r--r-- | src/createcalls.cpp | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/src/createcalls.cpp b/src/createcalls.cpp index ee8888d..d3c7da4 100644 --- a/src/createcalls.cpp +++ b/src/createcalls.cpp @@ -63,7 +63,7 @@ IO_Save(project_data *File, project_state *State, memory *Memory, char *Filename void *CompressedLocation = Memory_PushScratch(Memory, FileSize); - uint64 CompressedSize = Data_Compress(Memory, File, FileSize, CompressedLocation, FileSize, 0); // Z_BEST_COMPRESSION); + uint64 CompressedSize = Data_Compress(Memory, File, FileSize, CompressedLocation, FileSize, Z_BEST_COMPRESSION); Memory_PopScratch(Memory, FileSize); @@ -117,7 +117,7 @@ Source_Generate_Blank(project_data *File, project_state *State, memory *Memory, static bool32 Source_IsFileSupported(char *Path, bool32 *IsVideo, bool32 *HasAudio) { AV_IsFileSupported(Path, IsVideo, HasAudio); - if (IsVideo || HasAudio) { + if (*IsVideo || *HasAudio) { return 1; } else { return stbi_info(Path, NULL, NULL, NULL); @@ -575,36 +575,6 @@ void File_DeselectAllKeyframes(project_data *File, project_state *State, memory } -void Layer_Evaluate_Display(project_state *State, memory *Memory, block_layer *Layer, - sorted_property_array *SortedPropertyStart, uint16 *SortedKeyframeArray, - sorted_layer_array *LayerArrayStart, sorted_comp_array *CompStart, sorted_layer_array *SortedLayerStart, - int i, real32 *Offset) -{ - int ExtraPad = 1; - sorted_property_array *InfoLocation = SortedPropertyStart + SortedLayerStart->SortedPropertyStart; - uint16 *ArrayLocation = SortedKeyframeArray + SortedLayerStart->SortedKeyframeStart; - int h = 0, c = 0, p = 0; - property_channel *Property = NULL; - block_effect *Effect = NULL; - while (Layer_LoopChannels(State, Memory, &InfoLocation, &ArrayLocation, Layer, &Property, &Effect, &h, &c, &p)) - { - if (Property->IsToggled) { - *Offset += 1 + ExtraPad; - ExtraPad = 0; - } - } - /* - if (Layer->Precomp_Toggled) { - Assert(Layer->IsPrecomp); - sorted_comp_array *Layer_SortedCompStart = &CompStart[Layer->Block_Source_Index]; - sorted_layer_array *Layer_SortedLayerStart = Sorted_GetLayerStart(LayerArrayStart, CompStart, Layer->Block_Source_Index); - sorted_layer_array *TopLayerEntry = &Layer_SortedLayerStart[0]; - sorted_layer_array *BottomLayerEntry = &Layer_SortedLayerStart[Layer_SortedCompStart->LayerCount - 1]; - *Offset += TopLayerEntry->SortedOffset - BottomLayerEntry->SortedOffset + 2; - } - */ -} - static void Project_Layer_Delete(project_data *File, project_state *State, memory *Memory) { |