Skip to content

Commit b56664c

Browse files
committed
Typo fix and formating
1 parent 5ef3e68 commit b56664c

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

CONTRIBUTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
By default, the project will be built without any bindings to Paint.NET, if you want to enable this build the project for windows and with the feature `pdn-sys` enabled.
22

3-
This will build both a vendored version of [OpenRasterFileType](https://github.com/Zagna/openraster_pdn) and the dotnet bridge necessary for the rust side to be able to interface with Paint.NET.
3+
This will build both a vendored version of [OpenRasterFileType](https://github.com/Zagna/openraster_pdn) and the dotnet bridge necessary for the rust side to be able to interface with Paint.NET. Dotnet 9 or higher is required to build them.
44

5-
These C# projects will be located under `./shared` and by default require Paint.NET to be installed in `C:\Program Files\Paint.NET` (ie the default location for installation), you can change `<HintPath>` properties located in the project's `.csproj` if you would like to have them somewhere else. Please have dotnet 9 or higher installated as well. You might also be required to move `libnethost.lib` to the project directory, it would be located inside the `C:\Program Files\dotnet\packs\packs\Microsoft.NETCore.App.Host.win-ARCHITECTURE\DOTNET_VERSION` folder or whetever else you have dotnet installed.
5+
These C# projects will be located under `./shared` and by default require Paint.NET to be installed in `C:\Program Files\Paint.NET` (ie the default location for installation), you can change `<HintPath>` properties located in the project's `.csproj` if you would like to have it somewhere else.
6+
7+
You might also be required to move `libnethost.lib` to the project directory, it would be located inside the `C:\Program Files\dotnet\packs\packs\Microsoft.NETCore.App.Host.win-ARCHITECTURE\DOTNET_VERSION` folder or wherever else you have dotnet installed.

iced/src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ impl OraConverterGui {
214214
let task = task
215215
.chain(window::run(id, |h| {
216216
use windows_sys::Win32::{System::LibraryLoader, UI::WindowsAndMessaging};
217-
let window::raw_window_handle::RawWindowHandle::Win32(h) = h.window_handle().expect("Windows should have a display handle").as_raw() else {
217+
let window::raw_window_handle::RawWindowHandle::Win32(h) = h
218+
.window_handle()
219+
.expect("Windows should have a display handle")
220+
.as_raw()
221+
else {
218222
unreachable!("Platform should be win32 only!")
219223
};
220224
let hwnd = h.hwnd.get() as *mut core::ffi::c_void;

0 commit comments

Comments
 (0)