Skip to content

Commit

Permalink
move to hyprgraphics
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Nov 28, 2024
1 parent 11d9144 commit e4ed38d
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 455 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ pkg_check_modules(
libjxl_cms
libjxl_threads
hyprlang>=0.2.0
hyprutils>=0.2.0)
hyprutils>=0.2.0
hyprgraphics)

file(GLOB_RECURSE SRCFILES "src/*.cpp")

Expand Down
6 changes: 3 additions & 3 deletions src/Hyprpaper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,12 +569,12 @@ void CHyprpaper::renderWallpaperForMonitor(SMonitor* pMonitor) {
origin.y, scale, (int)PWALLPAPERTARGET->m_vSize.x, (int)PWALLPAPERTARGET->m_vSize.y);

if (TILE) {
cairo_pattern_t* pattern = cairo_pattern_create_for_surface(PWALLPAPERTARGET->m_pCairoSurface);
cairo_pattern_t* pattern = cairo_pattern_create_for_surface(PWALLPAPERTARGET->m_pCairoSurface->cairo());
cairo_pattern_set_extend(pattern, CAIRO_EXTEND_REPEAT);
cairo_set_source(PCAIRO, pattern);
} else {
cairo_scale(PCAIRO, scale, scale);
cairo_set_source_surface(PCAIRO, PWALLPAPERTARGET->m_pCairoSurface, origin.x, origin.y);
cairo_set_source_surface(PCAIRO, PWALLPAPERTARGET->m_pCairoSurface->cairo(), origin.x, origin.y);
}

cairo_paint(PCAIRO);
Expand Down Expand Up @@ -607,7 +607,7 @@ void CHyprpaper::renderWallpaperForMonitor(SMonitor* pMonitor) {

cairo_show_text(PCAIRO, SPLASH.c_str());

cairo_surface_flush(PWALLPAPERTARGET->m_pCairoSurface);
cairo_surface_flush(PWALLPAPERTARGET->m_pCairoSurface->cairo());
}

cairo_restore(PCAIRO);
Expand Down
127 changes: 0 additions & 127 deletions src/helpers/Bmp.cpp

This file was deleted.

7 changes: 0 additions & 7 deletions src/helpers/Bmp.hpp

This file was deleted.

66 changes: 0 additions & 66 deletions src/helpers/Jpeg.cpp

This file was deleted.

8 changes: 0 additions & 8 deletions src/helpers/Jpeg.hpp

This file was deleted.

107 changes: 0 additions & 107 deletions src/helpers/JpegXL.cpp

This file was deleted.

7 changes: 0 additions & 7 deletions src/helpers/JpegXL.hpp

This file was deleted.

Loading

0 comments on commit e4ed38d

Please sign in to comment.