@@ -10,28 +10,28 @@ namespace LVGLSharp.Runtime.Linux;
1010
1111public unsafe sealed class DrmView : ViewLifetimeBase
1212{
13- [ DllImport ( "LVGL " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_create" ) ]
13+ [ DllImport ( "lvgl " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_create" ) ]
1414 private static extern lv_display_t * lv_linux_drm_create_native ( ) ;
1515
16- [ DllImport ( "LVGL " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_set_file" ) ]
16+ [ DllImport ( "lvgl " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_set_file" ) ]
1717 private static extern lv_result_t lv_linux_drm_set_file_native ( lv_display_t * display , byte * file , long connectorId ) ;
1818
19- [ DllImport ( "LVGL " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_find_device_path" ) ]
19+ [ DllImport ( "lvgl " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_find_device_path" ) ]
2020 private static extern byte * lv_linux_drm_find_device_path_native ( ) ;
2121
22- [ DllImport ( "LVGL " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_set_mode_cb" ) ]
22+ [ DllImport ( "lvgl " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_set_mode_cb" ) ]
2323 private static extern void lv_linux_drm_set_mode_cb_native ( lv_display_t * display , delegate * unmanaged[ Cdecl] < lv_display_t * , IntPtr , nuint , nuint > callback ) ;
2424
25- [ DllImport ( "LVGL " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_mode_get_horizontal_resolution" ) ]
25+ [ DllImport ( "lvgl " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_mode_get_horizontal_resolution" ) ]
2626 private static extern int lv_linux_drm_mode_get_horizontal_resolution_native ( IntPtr mode ) ;
2727
28- [ DllImport ( "LVGL " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_mode_get_vertical_resolution" ) ]
28+ [ DllImport ( "lvgl " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_mode_get_vertical_resolution" ) ]
2929 private static extern int lv_linux_drm_mode_get_vertical_resolution_native ( IntPtr mode ) ;
3030
31- [ DllImport ( "LVGL " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_mode_get_refresh_rate" ) ]
31+ [ DllImport ( "lvgl " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_mode_get_refresh_rate" ) ]
3232 private static extern int lv_linux_drm_mode_get_refresh_rate_native ( IntPtr mode ) ;
3333
34- [ DllImport ( "LVGL " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_mode_is_preferred" ) ]
34+ [ DllImport ( "lvgl " , CallingConvention = CallingConvention . Cdecl , EntryPoint = "lv_linux_drm_mode_is_preferred" ) ]
3535 [ return : MarshalAs ( UnmanagedType . I1 ) ]
3636 private static extern bool lv_linux_drm_mode_is_preferred_native ( IntPtr mode ) ;
3737
@@ -81,7 +81,7 @@ protected override void OnOpenCore()
8181 _display = lv_linux_drm_create_native ( ) ;
8282 if ( _display == null )
8383 {
84- throw new InvalidOperationException ( "DRM display 创建失败。 " ) ;
84+ throw new InvalidOperationException ( "DRM display ����ʧ�ܡ� " ) ;
8585 }
8686
8787 _resolvedDevicePath = ResolveDevicePath ( ) ;
@@ -96,7 +96,7 @@ protected override void OnOpenCore()
9696 var result = lv_linux_drm_set_file_native ( _display , devicePtr , _connectorId ) ;
9797 if ( result != LV_RESULT_OK )
9898 {
99- throw new InvalidOperationException ( $ "DRM 设备初始化失败。 Device={ _resolvedDevicePath } , Connector={ _connectorId } , Result={ result } .") ;
99+ throw new InvalidOperationException ( $ "DRM �豸��ʼ��ʧ�ܡ� Device={ _resolvedDevicePath } , Connector={ _connectorId } , Result={ result } .") ;
100100 }
101101 }
102102
0 commit comments