Jump to content

SDL_SetWindowGammaRamp ERROR


weridetogether6
 Share

Recommended Posts

Hey, a issue I have been suffering with for awhile now. when I start the game up this error pops up in the left hand corner (SDL_SetWindowGammaRamp)

after that I start a multiplayer game then this pops up [115.236] Out-Of-Sync on turn1...…..[115.236] Players: Name of Player..... [115.236] Dumping state to C:\Users\AppData\local\0ad\logs\oos_dump.txt

 

any ideas how to fix

Link to comment
Share on other sites

3 hours ago, vladislavbelov said:

Hi @weridetogether6 and welcome to the forum!

Are you able to compile the game from sources? Also could you post specs of your computer? You can find it at log folder: GameDataPaths (wiki).

Thanks vladislavbelov, I'm not very proficient in computers. When you ask me to compile the game is that some sort of program? And with the specs is that found in my computer or in the folder i installed 0AD? 

Thanks for getting back to my forum.

Link to comment
Share on other sites

Welcome to the forum compiling from source means running the source code though a compiler(on Windows Visual Studio)that coverts the raw source code into a binary file that can actually run under that operating system.The computer spec can be found in a text file called system_info.txt that is the games log folder that you can find using that link to GameDataPaths that vlad provided.

Enjoy the Choice :)

Link to comment
Share on other sites

(generated 2019-06-15 11:36:07 UTC)

OS             : Win8.1  (6.3.9200)
CPU            : x86, Intel Core i7       Q 740  @ 1.73GHz (1x4x2), 1.73 GHz
Memory         : 8192 MiB; 5223 MiB free
Graphics Card  : NVIDIA GeForce GTX 460M/PCIe/SSE2
OpenGL Drivers : 4.6.0 NVIDIA 388.57; nvoglv32.dll (23.21.13.8857)
Video Mode     : 1920x1080:32
Sound Card     : OpenAL Soft on Speakers (Realtek High Definition Audio); OpenAL Soft on Realtek Digital Output (Realtek High Definition Audio); 
Sound Drivers  : 1.1 ALSOFT 1.17.1

do you need any more info?

 

Link to comment
Share on other sites

Spoiler

 

OpenGL Extensions: 

GL_AMD_multi_draw_indirect
GL_ARB_arrays_of_arrays
GL_ARB_base_instance
GL_ARB_blend_func_extended
GL_ARB_buffer_storage
GL_ARB_clear_buffer_object
GL_ARB_clear_texture
GL_ARB_clip_control
GL_ARB_color_buffer_float
GL_ARB_compatibility
GL_ARB_compressed_texture_pixel_storage
GL_ARB_conservative_depth
GL_ARB_compute_shader
GL_ARB_compute_variable_group_size
GL_ARB_conditional_render_inverted
GL_ARB_copy_buffer
GL_ARB_copy_image
GL_ARB_cull_distance
GL_ARB_debug_output
GL_ARB_depth_buffer_float
GL_ARB_depth_clamp
GL_ARB_depth_texture
GL_ARB_derivative_control
GL_ARB_direct_state_access
GL_ARB_draw_buffers
GL_ARB_draw_buffers_blend
GL_ARB_draw_indirect
GL_ARB_draw_elements_base_vertex
GL_ARB_draw_instanced
GL_ARB_enhanced_layouts
GL_ARB_ES2_compatibility
GL_ARB_ES3_compatibility
GL_ARB_ES3_1_compatibility
GL_ARB_ES3_2_compatibility
GL_ARB_explicit_attrib_location
GL_ARB_explicit_uniform_location
GL_ARB_fragment_coord_conventions
GL_ARB_fragment_layer_viewport
GL_ARB_fragment_program
GL_ARB_fragment_program_shadow
GL_ARB_fragment_shader
GL_ARB_framebuffer_no_attachments
GL_ARB_framebuffer_object
GL_ARB_framebuffer_sRGB
GL_ARB_geometry_shader4
GL_ARB_get_program_binary
GL_ARB_get_texture_sub_image
GL_ARB_gl_spirv
GL_ARB_gpu_shader5
GL_ARB_gpu_shader_fp64
GL_ARB_gpu_shader_int64
GL_ARB_half_float_pixel
GL_ARB_half_float_vertex
GL_ARB_imaging
GL_ARB_indirect_parameters
GL_ARB_instanced_arrays
GL_ARB_internalformat_query
GL_ARB_internalformat_query2
GL_ARB_invalidate_subdata
GL_ARB_map_buffer_alignment
GL_ARB_map_buffer_range
GL_ARB_multi_bind
GL_ARB_multi_draw_indirect
GL_ARB_multisample
GL_ARB_multitexture
GL_ARB_occlusion_query
GL_ARB_occlusion_query2
GL_ARB_parallel_shader_compile
GL_ARB_pipeline_statistics_query
GL_ARB_pixel_buffer_object
GL_ARB_point_parameters
GL_ARB_point_sprite
GL_ARB_polygon_offset_clamp
GL_ARB_program_interface_query
GL_ARB_provoking_vertex
GL_ARB_query_buffer_object
GL_ARB_robust_buffer_access_behavior
GL_ARB_robustness
GL_ARB_sample_shading
GL_ARB_sampler_objects
GL_ARB_seamless_cube_map
GL_ARB_separate_shader_objects
GL_ARB_shader_atomic_counter_ops
GL_ARB_shader_atomic_counters
GL_ARB_shader_bit_encoding
GL_ARB_shader_draw_parameters
GL_ARB_shader_group_vote
GL_ARB_shader_image_load_store
GL_ARB_shader_image_size
GL_ARB_shader_objects
GL_ARB_shader_precision
GL_ARB_shader_storage_buffer_object
GL_ARB_shader_subroutine
GL_ARB_shader_texture_image_samples
GL_ARB_shader_texture_lod
GL_ARB_shading_language_100
GL_ARB_shading_language_420pack
GL_ARB_shading_language_include
GL_ARB_shading_language_packing
GL_ARB_shadow
GL_ARB_sparse_buffer
GL_ARB_sparse_texture
GL_ARB_spirv_extensions
GL_ARB_stencil_texturing
GL_ARB_sync
GL_ARB_tessellation_shader
GL_ARB_texture_barrier
GL_ARB_texture_border_clamp
GL_ARB_texture_buffer_object
GL_ARB_texture_buffer_object_rgb32
GL_ARB_texture_buffer_range
GL_ARB_texture_compression
GL_ARB_texture_compression_bptc
GL_ARB_texture_compression_rgtc
GL_ARB_texture_cube_map
GL_ARB_texture_cube_map_array
GL_ARB_texture_env_add
GL_ARB_texture_env_combine
GL_ARB_texture_env_crossbar
GL_ARB_texture_env_dot3
GL_ARB_texture_filter_anisotropic
GL_ARB_texture_float
GL_ARB_texture_gather
GL_ARB_texture_mirror_clamp_to_edge
GL_ARB_texture_mirrored_repeat
GL_ARB_texture_multisample
GL_ARB_texture_non_power_of_two
GL_ARB_texture_query_levels
GL_ARB_texture_query_lod
GL_ARB_texture_rectangle
GL_ARB_texture_rg
GL_ARB_texture_rgb10_a2ui
GL_ARB_texture_stencil8
GL_ARB_texture_storage
GL_ARB_texture_storage_multisample
GL_ARB_texture_swizzle
GL_ARB_texture_view
GL_ARB_timer_query
GL_ARB_transform_feedback2
GL_ARB_transform_feedback3
GL_ARB_transform_feedback_instanced
GL_ARB_transform_feedback_overflow_query
GL_ARB_transpose_matrix
GL_ARB_uniform_buffer_object
GL_ARB_vertex_array_bgra
GL_ARB_vertex_array_object
GL_ARB_vertex_attrib_64bit
GL_ARB_vertex_attrib_binding
GL_ARB_vertex_buffer_object
GL_ARB_vertex_program
GL_ARB_vertex_shader
GL_ARB_vertex_type_10f_11f_11f_rev
GL_ARB_vertex_type_2_10_10_10_rev
GL_ARB_viewport_array
GL_ARB_window_pos
GL_ATI_draw_buffers
GL_ATI_texture_float
GL_ATI_texture_mirror_once
GL_S3_s3tc
GL_EXT_texture_env_add
GL_EXT_abgr
GL_EXT_bgra
GL_EXT_bindable_uniform
GL_EXT_blend_color
GL_EXT_blend_equation_separate
GL_EXT_blend_func_separate
GL_EXT_blend_minmax
GL_EXT_blend_subtract
GL_EXT_compiled_vertex_array
GL_EXT_Cg_shader
GL_EXT_depth_bounds_test
GL_EXT_direct_state_access
GL_EXT_draw_buffers2
GL_EXT_draw_instanced
GL_EXT_draw_range_elements
GL_EXT_fog_coord
GL_EXT_framebuffer_blit
GL_EXT_framebuffer_multisample
GL_EXTX_framebuffer_mixed_formats
GL_EXT_framebuffer_multisample_blit_scaled
GL_EXT_framebuffer_object
GL_EXT_framebuffer_sRGB
GL_EXT_geometry_shader4
GL_EXT_gpu_program_parameters
GL_EXT_gpu_shader4
GL_EXT_multi_draw_arrays
GL_EXT_packed_depth_stencil
GL_EXT_packed_float
GL_EXT_packed_pixels
GL_EXT_pixel_buffer_object
GL_EXT_point_parameters
GL_EXT_polygon_offset_clamp
GL_EXT_provoking_vertex
GL_EXT_rescale_normal
GL_EXT_secondary_color
GL_EXT_separate_shader_objects
GL_EXT_separate_specular_color
GL_EXT_shader_image_load_store
GL_EXT_shader_integer_mix
GL_EXT_shadow_funcs
GL_EXT_stencil_two_side
GL_EXT_stencil_wrap
GL_EXT_texture3D
GL_EXT_texture_array
GL_EXT_texture_buffer_object
GL_EXT_texture_compression_dxt1
GL_EXT_texture_compression_latc
GL_EXT_texture_compression_rgtc
GL_EXT_texture_compression_s3tc
GL_EXT_texture_cube_map
GL_EXT_texture_edge_clamp
GL_EXT_texture_env_combine
GL_EXT_texture_env_dot3
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_integer
GL_EXT_texture_lod
GL_EXT_texture_lod_bias
GL_EXT_texture_mirror_clamp
GL_EXT_texture_object
GL_EXT_texture_shared_exponent
GL_EXT_texture_sRGB
GL_EXT_texture_sRGB_decode
GL_EXT_texture_storage
GL_EXT_texture_swizzle
GL_EXT_timer_query
GL_EXT_transform_feedback2
GL_EXT_vertex_array
GL_EXT_vertex_array_bgra
GL_EXT_vertex_attrib_64bit
GL_EXT_window_rectangles
GL_EXT_import_sync_object
GL_IBM_rasterpos_clip
GL_IBM_texture_mirrored_repeat
GL_KHR_context_flush_control
GL_KHR_debug
GL_KHR_parallel_shader_compile
GL_KHR_no_error
GL_KHR_robust_buffer_access_behavior
GL_KHR_robustness
GL_KTX_buffer_region
GL_NV_alpha_to_coverage_dither_control
GL_NV_bindless_multi_draw_indirect
GL_NV_bindless_multi_draw_indirect_count
GL_NV_blend_equation_advanced
GL_NV_blend_square
GL_NV_command_list
GL_NV_compute_program5
GL_NV_conditional_render
GL_NV_copy_depth_to_color
GL_NV_copy_image
GL_NV_depth_buffer_float
GL_NV_depth_clamp
GL_NV_draw_texture
GL_NV_ES1_1_compatibility
GL_NV_ES3_1_compatibility
GL_NV_explicit_multisample
GL_NV_fence
GL_NV_float_buffer
GL_NV_fog_distance
GL_NV_fragment_program
GL_NV_fragment_program_option
GL_NV_fragment_program2
GL_NV_framebuffer_multisample_coverage
GL_NV_geometry_shader4
GL_NV_gpu_program4
GL_NV_internalformat_sample_query
GL_NV_gpu_program4_1
GL_NV_gpu_program5
GL_NV_gpu_program5_mem_extended
GL_NV_gpu_program_fp64
GL_NV_gpu_shader5
GL_NV_half_float
GL_NV_light_max_exponent
GL_NV_multisample_coverage
GL_NV_multisample_filter_hint
GL_NV_occlusion_query
GL_NV_packed_depth_stencil
GL_NV_parameter_buffer_object
GL_NV_parameter_buffer_object2
GL_NV_path_rendering
GL_NV_pixel_data_range
GL_NV_point_sprite
GL_NV_primitive_restart
GL_NV_query_resource
GL_NV_query_resource_tag
GL_NV_register_combiners
GL_NV_register_combiners2
GL_NV_shader_atomic_counters
GL_NV_shader_atomic_float
GL_NV_shader_buffer_load
GL_NV_shader_storage_buffer_object
GL_NV_texgen_reflection
GL_NV_texture_barrier
GL_NV_texture_compression_vtc
GL_NV_texture_env_combine4
GL_NV_texture_multisample
GL_NV_texture_rectangle
GL_NV_texture_rectangle_compressed
GL_NV_texture_shader
GL_NV_texture_shader2
GL_NV_texture_shader3
GL_NV_transform_feedback
GL_NV_transform_feedback2
GL_NV_uniform_buffer_unified_memory
GL_NV_vertex_array_range
GL_NV_vertex_array_range2
GL_NV_vertex_attrib_integer_64bit
GL_NV_vertex_buffer_unified_memory
GL_NV_vertex_program
GL_NV_vertex_program1_1
GL_NV_vertex_program2
GL_NV_vertex_program2_option
GL_NV_vertex_program3
GL_NVX_conditional_render
GL_NVX_gpu_memory_info
GL_NVX_multigpu_info
GL_NV_shader_thread_group
GL_KHR_blend_equation_advanced
GL_SGIS_generate_mipmap
GL_SGIS_texture_lod
GL_SGIX_depth_texture
GL_SGIX_shadow
GL_SUN_slice_accum
GL_WIN_swap_hint
WGL_EXT_swap_control 

SMBIOS: 

[Bios]
  vendor: "American Megatrends Inc."
  version: "G73Jw.202"
  startSegment: F000
  releaseDate: "08/05/2010"
  flags: pci|upgradable|shadowing|boot_cd|selectable_boot|edd|int13d|int13e|int13f|int5|int9|int14|int17
  vendorFlags: 5
  flags1: acpi|usb_legacy|smart_battery
  flags2: bios_boot|targeted_content_distribution
  size: 2 MiB

[System]
  manufacturer: "ASUSTeK Computer Inc."
  productName: "G73Jw"
  version: "1.0"
  serialNumber: "AAN0AS06803641"
  uuid0: 81DFD17640540B00
  uuid1: 7E5B6E30CF20CD2D
  wakeUpType: power_switch

[Baseboard]
  manufacturer: "ASUSTeK Computer Inc."
  product: "G73Jw"
  version: "1.0"
  serialNumber: "BSN12345678901234567"
  assetTag: "ATN12345678901234567"
  flags: motherboard|replaceable
  location: "MIDDLE"
  hChassis: 3
  type: motherboard

[Chassis]
  manufacturer: "ASUSTeK Computer Inc."
  type: (unknown ChassisType 138)
  version: "1.0"
  serialNumber: "CSN12345678901234567"
  assetTag: "No Asset Tag"
  state: ok
  powerState: ok
  thermalState: ok
  securityStatus: none
  numPowerCords: 1

[Processor]
  socket: "Socket 989"
  type: CPU
  m_Family: 194
  manufacturer: "Intel"
  id: BFEBFBFF000106E5
  version: "Intel(R) Core(TM) i7 CPU       Q 740  @ 1.73GH"
  externalClockFrequency: 133 MHz
  maxFrequency: 4000 MHz
  bootFrequency: 1733 MHz
  status: enabled
  upgrade: other
  hL1: 5
  hL2: 6
  hL3: 7
  coresPerPackage: 4
  enabledCores: 1
  logicalPerPackage: 2
  flags: x64
  family2: 194
  populated: true

[Cache]
  designation: "L1-Cache"
  configuration: enabled
  supportedFlags: other
  currentFlags: other
  ecc: none
  type: unified
  m_Associativity: A4
  level: 1
  location: internal
  mode: write_back
  maxSize: 32 KiB
  installedSize: 32 KiB

[Cache]
  designation: "L2-Cache"
  configuration: enabled
  supportedFlags: other
  currentFlags: other
  ecc: none
  type: unified
  m_Associativity: A8
  level: 2
  location: internal
  mode: varies
  maxSize: 256 KiB
  installedSize: 256 KiB

[Cache]
  designation: "L3-Cache"
  configuration: enabled
  supportedFlags: other
  currentFlags: other
  ecc: none
  type: unified
  m_Associativity: other
  level: 3
  location: internal
  mode: varies
  maxSize: 6 MiB
  installedSize: 6 MiB

[PortConnector]
  internalDesignator: "J1A1"
  internalConnectorType: none
  externalDesignator: "PS2Mouse"
  externalConnectorType: ps2
  portType: mouse

[PortConnector]
  internalDesignator: "J1A1"
  internalConnectorType: none
  externalDesignator: "Keyboard"
  externalConnectorType: ps2
  portType: keyboard

[PortConnector]
  internalDesignator: "J1A2A"
  internalConnectorType: none
  externalDesignator: "Serial Port"
  externalConnectorType: db9_pin_male
  portType: serial_16550a

[PortConnector]
  internalDesignator: "J1A2B"
  internalConnectorType: none
  externalDesignator: "Video"
  externalConnectorType: db15_pin_female
  portType: video

[PortConnector]
  internalDesignator: "J3A2"
  internalConnectorType: none
  externalDesignator: "HDMI"
  externalConnectorType: other
  portType: video

[PortConnector]
  internalDesignator: "J3A3"
  internalConnectorType: none
  externalDesignator: "USB1"
  externalConnectorType: access_bus_usb
  portType: usb

[PortConnector]
  internalDesignator: "J3A3"
  internalConnectorType: none
  externalDesignator: "USB2"
  externalConnectorType: access_bus_usb
  portType: usb

[PortConnector]
  internalDesignator: "J3A3"
  internalConnectorType: none
  externalDesignator: "USB3"
  externalConnectorType: access_bus_usb
  portType: usb

[PortConnector]
  internalDesignator: "J3A3"
  internalConnectorType: none
  externalDesignator: "USB4"
  externalConnectorType: access_bus_usb
  portType: usb

[PortConnector]
  internalDesignator: "J4A1"
  internalConnectorType: none
  externalDesignator: "USB5"
  externalConnectorType: access_bus_usb
  portType: usb

[PortConnector]
  internalDesignator: "J4A1"
  internalConnectorType: none
  externalDesignator: "USB6"
  externalConnectorType: access_bus_usb
  portType: usb

[PortConnector]
  internalDesignator: "J4A1"
  internalConnectorType: none
  externalDesignator: "LAN"
  externalConnectorType: rj45
  portType: network

[PortConnector]
  internalDesignator: "J5A1"
  internalConnectorType: none
  externalDesignator: "Motherboard DP"
  externalConnectorType: other
  portType: other

[PortConnector]
  internalDesignator: "J8J1"
  internalConnectorType: none
  externalDesignator: "SATA Port 0 Direct Connect"
  externalConnectorType: sas_sata
  portType: sata

[PortConnector]
  internalDesignator: "J7J1"
  internalConnectorType: none
  externalDesignator: "eSATA Port 4"
  externalConnectorType: sas_sata
  portType: sata

[PortConnector]
  internalDesignator: "J6J1"
  internalConnectorType: none
  externalDesignator: "eSATA Port 3"
  externalConnectorType: sas_sata
  portType: sata

[PortConnector]
  internalDesignator: "J1F2"
  internalConnectorType: none
  externalDesignator: "AC IN"
  externalConnectorType: other
  portType: other

[PortConnector]
  internalDesignator: "J5B1 - PCH JTAG"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J9A1 - TPM/PORT 80"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J9E4 - HDA 2X8 Header"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J9E7 - HDA 8Pin Header"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J8F1 - HDA HDMI"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J9E3 - Scan Matrix Keyboard"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J8E1 - SPI Program"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J9E5 - LPC Hot Docking"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J9G2 - LPC SIDE BAND"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J8F2 - LPC Slot"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J8H3 - PCH XDP"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J7G1 - SATA Port 2"
  internalConnectorType: sas_sata
  externalConnectorType: none
  portType: sata

[PortConnector]
  internalDesignator: "J7G2 - SATA Port 1"
  internalConnectorType: sas_sata
  externalConnectorType: none
  portType: sata

[PortConnector]
  internalDesignator: "J6H1 - SATA Power"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J5J1 - FP Header"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J4H1 - ATX Power"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J1J3 - AVMC"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J1H1 - BATT B"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J1H2 - BATT A"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J2G1 - CPU Fan"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J1D3 - XDP"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J4V1 - Memory Slot 1"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J4V2 - Memory Slot 2"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[PortConnector]
  internalDesignator: "J4C1 - FAN PWR"
  internalConnectorType: other
  externalConnectorType: none
  portType: other

[SystemSlot]
  designation: "J5C1"
  type: pcie_x16
  busWidth: x16
  usage: in_use
  length: _long
  flags1: v3_3|shared
  flags2: pme
  busNumber: 1
  deviceNumber: 3

[SystemSlot]
  designation: "J6C2"
  type: pcie
  busWidth: x1
  usage: available
  length: _short
  id: 1
  flags1: v3_3|shared
  flags2: pme
  busNumber: 2
  deviceNumber: 28

[SystemSlot]
  designation: "J6D2"
  type: pcie
  busWidth: x1
  usage: in_use
  length: _short
  id: 2
  flags1: v3_3|shared
  flags2: pme
  busNumber: 3
  deviceNumber: 28
  functionNumber: 1

[SystemSlot]
  designation: "J7C1"
  type: pcie
  busWidth: x1
  usage: available
  length: _short
  id: 3
  flags1: v3_3|shared
  flags2: pme
  deviceNumber: 28
  functionNumber: 2

[SystemSlot]
  designation: "J7D2"
  type: pcie
  busWidth: x1
  usage: in_use
  length: _short
  id: 4
  flags1: v3_3|shared
  flags2: pme
  busNumber: 4
  deviceNumber: 28
  functionNumber: 3

[SystemSlot]
  designation: "J6C1"
  type: pcie
  busWidth: x1
  usage: in_use
  length: _short
  id: 5
  flags1: v3_3|shared
  flags2: pme
  busNumber: 5
  deviceNumber: 28
  functionNumber: 4

[SystemSlot]
  designation: "J8C1"
  type: pcie
  busWidth: x1
  usage: in_use
  length: _short
  id: 6
  flags1: v3_3|shared
  flags2: pme
  busNumber: 6
  deviceNumber: 28
  functionNumber: 5

[SystemSlot]
  designation: "J9C1"
  type: pcie
  busWidth: x1
  usage: available
  length: _short
  id: 7
  flags1: v3_3|shared
  flags2: pme
  deviceNumber: 28
  functionNumber: 6

[SystemSlot]
  designation: "JAC1"
  type: pcie
  busWidth: x1
  usage: available
  length: _short
  id: 8
  flags1: v3_3|shared
  flags2: pme
  deviceNumber: 28
  functionNumber: 7

[SystemSlot]
  designation: "JBC1"
  type: pci
  busWidth: _32
  usage: available
  length: _long
  id: 9
  flags1: v3_3|shared
  flags2: pme
  deviceNumber: 30

[OnBoardDevices]
  type: video
  description: "   To Be Filled By O.E.M."
  enabled: false

[OnBoardDevices]
  type: ethernet
  enabled: false

[OnBoardDevices]
  type: other
  description: "   Onboard 1394"
  enabled: true

[MemoryArray]
  location: motherboard
  use: system
  ecc: none
  numDevices: 4
  maxCapacity: 16 GiB

[MemoryDevice]
  hMemoryArray: 65
  totalWidth: 64 bits
  dataWidth: 64 bits
  formFactor: SODIMM
  locator: "DIMM0"
  bank: "BANK 0"
  type: DDR3
  typeFlags: synchronous
  speed: 1333 MHz
  manufacturer: "80AD"
  serialNumber: "301182DF"
  assetTag: "Unknown"
  partNumber: "HMT325S6BFR8C-H9"
  size: 2 GiB

[MemoryDevice]
  hMemoryArray: 65
  totalWidth: 64 bits
  dataWidth: 64 bits
  formFactor: SODIMM
  locator: "DIMM1"
  bank: "BANK 1"
  type: DDR3
  typeFlags: synchronous
  speed: 1333 MHz
  manufacturer: "80AD"
  serialNumber: "302182DC"
  assetTag: "Unknown"
  partNumber: "HMT325S6BFR8C-H9"
  size: 2 GiB

[MemoryDevice]
  hMemoryArray: 65
  totalWidth: 64 bits
  dataWidth: 64 bits
  formFactor: SODIMM
  locator: "DIMM2"
  bank: "BANK 2"
  type: DDR3
  typeFlags: synchronous
  speed: 1333 MHz
  manufacturer: "80AD"
  serialNumber: "30C182DB"
  assetTag: "Unknown"
  partNumber: "HMT325S6BFR8C-H9"
  size: 2 GiB

[MemoryDevice]
  hMemoryArray: 65
  totalWidth: 64 bits
  dataWidth: 64 bits
  formFactor: SODIMM
  locator: "DIMM3"
  bank: "BANK 3"
  type: DDR3
  typeFlags: synchronous
  speed: 1333 MHz
  manufacturer: "80AD"
  serialNumber: "30B182DB"
  assetTag: "Unknown"
  partNumber: "HMT325S6BFR8C-H9"
  size: 2 GiB

[MemoryArrayMappedAddress]
  hMemoryArray: 65
  partitionWidth: 4
  endAddress: FFFFFC00

[MemoryDeviceMappedAddress]
  hMemoryDevice: 66
  hMemoryArrayMappedAddress: 77
  interleavePosition: 1
  interleavedDataDepth: 1
  endAddress: 7FFFFC00

[MemoryDeviceMappedAddress]
  hMemoryDevice: 68
  hMemoryArrayMappedAddress: 77
  interleavePosition: 1
  interleavedDataDepth: 1
  startAddress: 80000000
  endAddress: FFFFFC00

[MemoryDeviceMappedAddress]
  hMemoryDevice: 70
  hMemoryArrayMappedAddress: 77
  interleavePosition: 2
  interleavedDataDepth: 1
  endAddress: 7FFFFC00

[MemoryDeviceMappedAddress]
  hMemoryDevice: 75
  hMemoryArrayMappedAddress: 77
  interleavePosition: 2
  interleavedDataDepth: 1
  startAddress: 80000000
  endAddress: FFFFFC00

[SystemBoot]
  status: no_error


 

 

Link to comment
Share on other sites

@Angen, @Stan`  I found a way to solve this problem, but I don't know where to put it.

BOOL WINAPI GetDevice Gamma Ramp            HDC hDC,            LPVOID lpRamp            ) BOOL WINAPI Set Device Gamma Ramp (HDC hDC, LPVOID lpRamp); where lpRamp points to a 3 x 256 WORD array with gradients that need Gamma correction, such as void * lpGamma = NULL;            WORD gMap [3] [256]= {0};            LpGamma = & gMap;            HDC HDC = GetDC (NULL);            GetDeviceGamma Ramp (hdc, lpGamma); // Get the current Gamma            For (INT I = 0; I < 256; i+)            {            GMap [0] = 256*i;            GMap [1] = 256*i;            GMap [2] = 256*i;            }            SetDeviceGamma Ramp (hdc, lpGamma); // Set to Standard Gamma

 

Link to comment
Share on other sites

// Adjust brightness parameter 0 - 100 Setting Successfully Returns 0 Setting Failure Returns Negative Number 
Int SetGamma(int bright)
{
    Void *lpGamma = NULL;
    Int iArray Value;
    WORD gMap[3][256] = {0};
    LpGamma = &gMap;
    HDC HDC = GetDC(NULL);
    If(NULL = hdc) Return - 1;
    For(int I = 0; I < 256; i +)
    {
        IArrayValue = i * (bright + 128);
        If(iArray Value > 65535) IArrayValue = 65535;
        GMap[0][i] = GMap[1][i] = GMap[2][i] = (WORD)iArray Value;
    }
    If(FALSE = SetDeviceGamma Ramp(hdc, lpGamma)) Return - 2;
    Return 0;
}

 

Link to comment
Share on other sites

@Stan`  I wrote a piece of code that might be able to adjust and correct the gamma on the display.

 

Class header file : (gammaramp.h)

#ifndef GAMMARAMP_H_
#define GAMMARAMP_H_
/*
CGammaRamp class
Encapsulates the Gamma Ramp API and changes the brightness of
the entire screen.
*/
                        class CGammaRamp
{
protected:
    HMODULE hGDI32;
    HDC hScreenDC;
    typedef BOOL(WINAPI *Type_SetDeviceGammaRamp)(HDC hDC, LPVOID lpRamp);
    Type_SetDeviceGammaRamp pGetDeviceGammaRamp;
    Type_SetDeviceGammaRamp pSetDeviceGammaRamp;
public:
    CGammaRamp();
    ~CGammaRamp();
    BOOL LoadLibrary();
    void FreeLibrary();
    BOOL LoadLibraryIfNeeded();
    BOOL SetDeviceGammaRamp(HDC hDC, LPVOID lpRamp);
    BOOL GetDeviceGammaRamp(HDC hDC, LPVOID lpRamp);
    BOOL SetBrightness(HDC hDC, WORD wBrightness);
};
#endif
 Class C++ File : (gammaramp.cpp)
#include <windows.h>
#include "gammaramp.h"
                 /* CGammaRamp class
Encapsulates the Gamma Ramp API and changes the brightness of
the entire screen.
*/
                 CGammaRamp::CGammaRamp()
{
    //Initialize all variables.
    hGDI32 = NULL;
    hScreenDC = NULL;
    pGetDeviceGammaRamp = NULL;
    pSetDeviceGammaRamp = NULL;
}
CGammaRamp::~CGammaRamp()
{
    FreeLibrary();
}
BOOL CGammaRamp::LoadLibrary()
{
    BOOL bReturn = FALSE;
    FreeLibrary();
    //Load the GDI library.
    hGDI32 = ::LoadLibrary("gdi32.dll");
    if (hGDI32 != NULL)
    {
        //Get the addresses of GetDeviceGammaRamp and SetDeviceGammaRamp API functions.
        pGetDeviceGammaRamp =
            (Type_SetDeviceGammaRamp)GetProcAddress(hGDI32, "GetDeviceGammaRamp");
        pSetDeviceGammaRamp =
            (Type_SetDeviceGammaRamp)GetProcAddress(hGDI32, "SetDeviceGammaRamp");
        //Return TRUE only if these functions exist.
        if (pGetDeviceGammaRamp == NULL || pSetDeviceGammaRamp == NULL)
            FreeLibrary();
        else
            bReturn = TRUE;
    }
    return bReturn;
}
void CGammaRamp::FreeLibrary()
{
    //Free the GDI library.
    if (hGDI32 != NULL)
    {
        ::FreeLibrary(hGDI32);
        hGDI32 = NULL;
    }
}
BOOL CGammaRamp::LoadLibraryIfNeeded()
{
    BOOL bReturn = FALSE;
    if (hGDI32 == NULL)
        LoadLibrary();
    if (pGetDeviceGammaRamp != NULL && pSetDeviceGammaRamp != NULL)
        bReturn = TRUE;
    return bReturn;
}
BOOL CGammaRamp::SetDeviceGammaRamp(HDC hDC, LPVOID lpRamp)
{
    //Call to SetDeviceGammaRamp only if this function is successfully loaded.
    if (LoadLibraryIfNeeded())
    {
        return pSetDeviceGammaRamp(hDC, lpRamp);
    }
    else
        return FALSE;
}
BOOL CGammaRamp::GetDeviceGammaRamp(HDC hDC, LPVOID lpRamp)
{
    //Call to GetDeviceGammaRamp only if this function is successfully loaded.
    if (LoadLibraryIfNeeded())
    {
        return pGetDeviceGammaRamp(hDC, lpRamp);
    }
    else
        return FALSE;
}
BOOL CGammaRamp::SetBrightness(HDC hDC, WORD wBrightness)
{
    /*
Changes the brightness of the entire screen.
This function may not work properly in some video cards.
The wBrightness value should be a number between 0 and 255.
128 = Regular brightness
above 128 = brighter
below 128 = darker
If hDC is NULL, SetBrightness automatically load and release
the display device context for you.
*/
    BOOL bReturn = FALSE;
    HDC hGammaDC = hDC;
    //Load the display device context of the entire screen if hDC is NULL.
    if (hDC == NULL)
        hGammaDC = GetDC(NULL);
    if (hGammaDC != NULL)
    {
        //Generate the 256-colors array for the specified wBrightness value.
        WORD GammaArray[3][256];
        for (int iIndex = 0; iIndex < 256; iIndex++)
        {
            int iArrayValue = iIndex * (wBrightness + 128);
            if (iArrayValue > 65535)
                iArrayValue = 65535;
            GammaArray[0][iIndex] =
                GammaArray[1][iIndex] =
                    GammaArray[2][iIndex] = (WORD)iArrayValue;
        }
        //Set the GammaArray values into the display device context.
        bReturn = SetDeviceGammaRamp(hGammaDC, GammaArray);
    }
    if (hDC == NULL)
        ReleaseDC(NULL, hGammaDC);
    return bReturn;
}

Example for using the CGammaRamp class:

#include <windows.h>
#include "gammaramp.h"

int WINAPI WinMain(
HINSTANCE hInstance, // handle to current instance
HINSTANCE hPrevInstance, // handle to previous instance
LPSTR lpCmdLine, // command line
int nCmdShow // show state
)
{
    //Example for changing the brightness with CGammaRamp class:
    //Be aware that this exmaple may not work properly in all
    //Video cards.
    CGammaRamp GammaRamp;
    //Make the screen darker:
    GammaRamp.SetBrightness(NULL, 64);
    //Wait 3 seconds:
    Sleep(3000);
    //Return back to normal:
    GammaRamp.SetBrightness(NULL, 128);
    return 0;
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...